Skip to content

Commit c932512

Browse files
committed
Doc/library/xml.etree.elementtree.rst: Use ".. note::" for backport notes
.. to make it consistent with Doc/library/pyexpat.rst.
1 parent 828f786 commit c932512

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Doc/library/xml.etree.elementtree.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,7 +1398,9 @@ XMLParser Objects
13981398
Disabling reparse deferral has security consequences; please see
13991399
:meth:`xml.parsers.expat.xmlparser.SetReparseDeferralEnabled` for details.
14001400

1401-
Note that :meth:`flush` has been backported to some prior releases of
1401+
.. note::
1402+
1403+
:meth:`flush` has been backported to some prior releases of
14021404
CPython as a security fix. Check for availability of :meth:`flush`
14031405
using :func:`hasattr` if used in code running across a variety of Python
14041406
versions.
@@ -1476,7 +1478,9 @@ XMLPullParser Objects
14761478
Disabling reparse deferral has security consequences; please see
14771479
:meth:`xml.parsers.expat.xmlparser.SetReparseDeferralEnabled` for details.
14781480

1479-
Note that :meth:`flush` has been backported to some prior releases of
1481+
.. note::
1482+
1483+
:meth:`flush` has been backported to some prior releases of
14801484
CPython as a security fix. Check for availability of :meth:`flush`
14811485
using :func:`hasattr` if used in code running across a variety of Python
14821486
versions.

0 commit comments

Comments
 (0)