File tree 2 files changed +15
-0
lines changed 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.11.9
221
226
222
227
.. method :: xmlparser.GetReparseDeferralEnabled()
Original file line number Diff line number Diff line change @@ -1393,6 +1393,11 @@ XMLParser Objects
1393
1393
Disabling reparse deferral has security consequences; please see
1394
1394
:meth: `xml.parsers.expat.xmlparser.SetReparseDeferralEnabled ` for details.
1395
1395
1396
+ Note that :meth: `flush ` has been backported to some prior releases of
1397
+ CPython as a security fix. Check for availability of :meth: `flush `
1398
+ using :func: `hasattr ` if used in code running across a variety of Python
1399
+ versions.
1400
+
1396
1401
.. versionadded :: 3.11.9
1397
1402
1398
1403
@@ -1466,6 +1471,11 @@ XMLPullParser Objects
1466
1471
Disabling reparse deferral has security consequences; please see
1467
1472
:meth: `xml.parsers.expat.xmlparser.SetReparseDeferralEnabled ` for details.
1468
1473
1474
+ Note that :meth: `flush ` has been backported to some prior releases of
1475
+ CPython as a security fix. Check for availability of :meth: `flush `
1476
+ using :func: `hasattr ` if used in code running across a variety of Python
1477
+ versions.
1478
+
1469
1479
.. versionadded :: 3.11.9
1470
1480
1471
1481
.. method :: close()
You can’t perform that action at this time.
0 commit comments