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