File tree 2 files changed +15
-0
lines changed
Filter options
2 files changed +15
-0
lines changed
Original file line number Diff line number Diff line change @@ -217,6 +217,11 @@ XMLParser Objects
217
217
Calling ``SetReparseDeferralEnabled(True) `` allows re-enabling reparse
218
218
deferral.
219
219
220
+ Note that :meth: `SetReparseDeferralEnabled ` has been backported to some
221
+ prior releases of CPython as a security fix. Check for availability of
222
+ :meth: `SetReparseDeferralEnabled ` using :func: `hasattr ` if used in code
223
+ running across a variety of Python versions.
224
+
220
225
.. versionadded :: 3.10.14
221
226
222
227
.. method :: xmlparser.GetReparseDeferralEnabled()
Original file line number Diff line number Diff line change @@ -1385,6 +1385,11 @@ XMLParser Objects
1385
1385
Disabling reparse deferral has security consequences; please see
1386
1386
:meth: `xml.parsers.expat.xmlparser.SetReparseDeferralEnabled ` for details.
1387
1387
1388
+ Note that :meth: `flush ` has been backported to some prior releases of
1389
+ CPython as a security fix. Check for availability of :meth: `flush `
1390
+ using :func: `hasattr ` if used in code running across a variety of Python
1391
+ versions.
1392
+
1388
1393
.. versionadded :: 3.10.14
1389
1394
1390
1395
@@ -1458,6 +1463,11 @@ XMLPullParser Objects
1458
1463
Disabling reparse deferral has security consequences; please see
1459
1464
:meth: `xml.parsers.expat.xmlparser.SetReparseDeferralEnabled ` for details.
1460
1465
1466
+ Note that :meth: `flush ` has been backported to some prior releases of
1467
+ CPython as a security fix. Check for availability of :meth: `flush `
1468
+ using :func: `hasattr ` if used in code running across a variety of Python
1469
+ versions.
1470
+
1461
1471
.. versionadded :: 3.10.14
1462
1472
1463
1473
.. method :: close()
You can’t perform that action at this time.
0 commit comments