Skip to content

Commit 828f786

Browse files
committed
Doc/library/pyexpat.rst: Use ".. note::" with SetReparseDeferralEnabled
.. to make it consistent with the other four Expat security methods.
1 parent 834a7e0 commit 828f786

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Doc/library/pyexpat.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,14 @@ XMLParser Objects
223223
Calling ``SetReparseDeferralEnabled(True)`` allows re-enabling reparse
224224
deferral.
225225

226-
Note that :meth:`SetReparseDeferralEnabled` has been backported to some
227-
prior releases of CPython as a security fix. Check for availability of
228-
:meth:`SetReparseDeferralEnabled` using :func:`hasattr` if used in code
229-
running across a variety of Python versions.
226+
.. note::
227+
228+
:meth:`SetReparseDeferralEnabled`
229+
has been backported to some prior releases of CPython as a security fix.
230+
Check for availability of
231+
:meth:`SetReparseDeferralEnabled`
232+
using :func:`hasattr` if used in code running across a variety of Python
233+
versions.
230234

231235
.. versionadded:: 3.13
232236

0 commit comments

Comments
 (0)