Skip to content

Commit 6e397c4

Browse files
committed
Resolve double self reference
As requested by @hugovk
1 parent d5ecaa2 commit 6e397c4

File tree

2 files changed

+14
-28
lines changed

2 files changed

+14
-28
lines changed

Doc/library/pyexpat.rst

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,8 @@ XMLParser Objects
225225

226226
:meth:`!SetReparseDeferralEnabled`
227227
has been backported to some prior releases of CPython as a security fix.
228-
Check for availability of
229-
:meth:`!SetReparseDeferralEnabled`
230-
using :func:`hasattr` if used in code running across a variety of Python
231-
versions.
228+
Check for availability using :func:`hasattr` if used in code running
229+
across a variety of Python versions.
232230

233231
.. versionadded:: 3.13
234232

@@ -261,10 +259,8 @@ against some common XML vulnerabilities.
261259

262260
:meth:`!SetBillionLaughsAttackProtectionActivationThreshold`
263261
has been backported to some prior releases of CPython as a security fix.
264-
Check for availability of
265-
:meth:`!SetBillionLaughsAttackProtectionActivationThreshold`
266-
using :func:`hasattr` if used in code running across a variety of Python
267-
versions.
262+
Check for availability using :func:`hasattr` if used in code running
263+
across a variety of Python versions.
268264

269265
.. note::
270266

@@ -299,10 +295,8 @@ against some common XML vulnerabilities.
299295

300296
:meth:`!SetBillionLaughsAttackProtectionMaximumAmplification`
301297
has been backported to some prior releases of CPython as a security fix.
302-
Check for availability of
303-
:meth:`!SetBillionLaughsAttackProtectionMaximumAmplification`
304-
using :func:`hasattr` if used in code running across a variety of Python
305-
versions.
298+
Check for availability using :func:`hasattr` if used in code running
299+
across a variety of Python versions.
306300

307301
.. note::
308302

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

328322
:meth:`!SetAllocTrackerActivationThreshold`
329323
has been backported to some prior releases of CPython as a security fix.
330-
Check for availability of
331-
:meth:`!SetAllocTrackerActivationThreshold`
332-
using :func:`hasattr` if used in code running across a variety of Python
333-
versions.
324+
Check for availability using :func:`hasattr` if used in code running
325+
across a variety of Python versions.
334326

335327
.. versionadded:: next
336328

@@ -359,10 +351,8 @@ against some common XML vulnerabilities.
359351

360352
:meth:`!SetAllocTrackerMaximumAmplification`
361353
has been backported to some prior releases of CPython as a security fix.
362-
Check for availability of
363-
:meth:`!SetAllocTrackerMaximumAmplification`
364-
using :func:`hasattr` if used in code running across a variety of Python
365-
versions.
354+
Check for availability using :func:`hasattr` if used in code running
355+
across a variety of Python versions.
366356

367357
.. note::
368358

Doc/library/xml.etree.elementtree.rst

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,10 +1400,8 @@ XMLParser Objects
14001400

14011401
:meth:`!flush`
14021402
has been backported to some prior releases of CPython as a security fix.
1403-
Check for availability of
1404-
:meth:`!flush`
1405-
using :func:`hasattr` if used in code running across a variety of Python
1406-
versions.
1403+
Check for availability using :func:`hasattr` if used in code running
1404+
across a variety of Python versions.
14071405

14081406
.. versionadded:: 3.13
14091407

@@ -1480,10 +1478,8 @@ XMLPullParser Objects
14801478

14811479
:meth:`!flush`
14821480
has been backported to some prior releases of CPython as a security fix.
1483-
Check for availability of
1484-
:meth:`!flush`
1485-
using :func:`hasattr` if used in code running across a variety of Python
1486-
versions.
1481+
Check for availability using :func:`hasattr` if used in code running
1482+
across a variety of Python versions.
14871483

14881484
.. versionadded:: 3.13
14891485

0 commit comments

Comments
 (0)