Skip to content
Prev Previous commit
Resolve double self reference
As requested by @hugovk
  • Loading branch information
hartwork committed Oct 13, 2025
commit 6e397c49b8a02ef9f42fe10e281adbabf3d67968
30 changes: 10 additions & 20 deletions Doc/library/pyexpat.rst
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,8 @@ XMLParser Objects

:meth:`!SetReparseDeferralEnabled`
has been backported to some prior releases of CPython as a security fix.
Check for availability of
:meth:`!SetReparseDeferralEnabled`
using :func:`hasattr` if used in code running across a variety of Python
versions.
Check for availability using :func:`hasattr` if used in code running
across a variety of Python versions.

.. versionadded:: 3.13

Expand Down Expand Up @@ -261,10 +259,8 @@ against some common XML vulnerabilities.

:meth:`!SetBillionLaughsAttackProtectionActivationThreshold`
has been backported to some prior releases of CPython as a security fix.
Check for availability of
:meth:`!SetBillionLaughsAttackProtectionActivationThreshold`
using :func:`hasattr` if used in code running across a variety of Python
versions.
Check for availability using :func:`hasattr` if used in code running
across a variety of Python versions.

.. note::

Expand Down Expand Up @@ -299,10 +295,8 @@ against some common XML vulnerabilities.

:meth:`!SetBillionLaughsAttackProtectionMaximumAmplification`
has been backported to some prior releases of CPython as a security fix.
Check for availability of
:meth:`!SetBillionLaughsAttackProtectionMaximumAmplification`
using :func:`hasattr` if used in code running across a variety of Python
versions.
Check for availability using :func:`hasattr` if used in code running
across a variety of Python versions.

.. note::

Expand All @@ -327,10 +321,8 @@ against some common XML vulnerabilities.

:meth:`!SetAllocTrackerActivationThreshold`
has been backported to some prior releases of CPython as a security fix.
Check for availability of
:meth:`!SetAllocTrackerActivationThreshold`
using :func:`hasattr` if used in code running across a variety of Python
versions.
Check for availability using :func:`hasattr` if used in code running
across a variety of Python versions.

.. versionadded:: next

Expand Down Expand Up @@ -359,10 +351,8 @@ against some common XML vulnerabilities.

:meth:`!SetAllocTrackerMaximumAmplification`
has been backported to some prior releases of CPython as a security fix.
Check for availability of
:meth:`!SetAllocTrackerMaximumAmplification`
using :func:`hasattr` if used in code running across a variety of Python
versions.
Check for availability using :func:`hasattr` if used in code running
across a variety of Python versions.

.. note::

Expand Down
12 changes: 4 additions & 8 deletions Doc/library/xml.etree.elementtree.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1400,10 +1400,8 @@ XMLParser Objects

:meth:`!flush`
has been backported to some prior releases of CPython as a security fix.
Check for availability of
:meth:`!flush`
using :func:`hasattr` if used in code running across a variety of Python
versions.
Check for availability using :func:`hasattr` if used in code running
across a variety of Python versions.

.. versionadded:: 3.13

Expand Down Expand Up @@ -1480,10 +1478,8 @@ XMLPullParser Objects

:meth:`!flush`
has been backported to some prior releases of CPython as a security fix.
Check for availability of
:meth:`!flush`
using :func:`hasattr` if used in code running across a variety of Python
versions.
Check for availability using :func:`hasattr` if used in code running
across a variety of Python versions.

.. versionadded:: 3.13

Expand Down
Loading