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