Skip to content

Commit 0ecbd55

Browse files
committed
fix docs
1 parent 192fe08 commit 0ecbd55

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Doc/library/pyexpat.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ well-known XML vulnerabilities.
253253

254254
An :exc:`ExpatError` is raised if this method is called by a non-root
255255
parser or if *max_factor* is outside the valid range. The corresponding
256-
:attr:`~ExpatError.lineno` and :attr:`~ExpatError.column` should not be
256+
:attr:`~.ExpatError.lineno` and :attr:`~.ExpatError.column` should not be
257257
used as they will have no special meaning.
258258

259259
.. note::
@@ -272,7 +272,7 @@ well-known XML vulnerabilities.
272272
or equivalently 67,108,864 bytes.
273273

274274
An :exc:`ExpatError` is raised if this method is called by a non-root parser.
275-
The corresponding :attr:`~ExpatError.lineno` and :attr:`~ExpatError.column`
275+
The corresponding :attr:`~.ExpatError.lineno` and :attr:`~.ExpatError.column`
276276
should not be used as they will have no special meaning.
277277

278278
.. versionadded:: next

Doc/whatsnew/3.15.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ xml.parsers.expat
545545

546546
* Add :func:`~xml.parsers.expat.xmlparser.SetAllocTrackerMaximumAmplification`
547547
and :func:`~xml.parsers.expat.xmlparser.SetAllocTrackerActivationThreshold`
548-
to :class:`~xml.parsers.expat.xmlparser` objects to prevent use of
548+
to :ref:`xmlparser <xmlparser-objects>` objects to prevent use of
549549
disproportional amounts of dynamic memory from within an Expat parser.
550550
(Contributed by Bénédikt Tran in :gh:`90949`.)
551551

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Add :func:`~xml.parsers.expat.xmlparser.SetAllocTrackerMaximumAmplification`
22
and :func:`~xml.parsers.expat.xmlparser.SetAllocTrackerActivationThreshold`
3-
to :class:`~xml.parsers.expat.xmlparser` objects to prevent use of
3+
to :ref:`xmlparser <xmlparser-objects>` objects to prevent use of
44
disproportional amounts of dynamic memory from within an Expat parser. Patch
55
by Bénédikt Tran.

0 commit comments

Comments
 (0)