Skip to content

Commit 8407cfc

Browse files
committed
amend docs
1 parent 209f300 commit 8407cfc

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

Doc/library/pyexpat.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ The :mod:`xml.parsers.expat` module contains two functions:
120120
XMLParser Objects
121121
-----------------
122122

123+
.. class:: xmlparser
124+
125+
The type of an Expat XML parser created by :func:`ParserCreate`.
126+
127+
123128
:class:`xmlparser` objects have the following methods:
124129

125130

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.SetAllocTrackerActivationThreshold`
547547
and :func:`~xml.parsers.expat.xmlparser.SetAllocTrackerMaximumAmplification`
548-
to :ref:`xmlparser <xmlparser-objects>` objects to prevent use of
548+
to :class:`~xml.parsers.expat.xmlparser` 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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Add :func:`~xml.parsers.expat.xmlparser.SetAllocTrackerActivationThreshold`
22
and :func:`~xml.parsers.expat.xmlparser.SetAllocTrackerMaximumAmplification`
3-
to :ref:`xmlparser <xmlparser-objects>` objects to prevent use of
4-
disproportional amounts of dynamic memory from within an Expat parser. Patch
5-
by Bénédikt Tran.
3+
to :class:`~xml.parsers.expat.xmlparser` objects to prevent use of
4+
disproportional amounts of dynamic memory from within an Expat parser.
5+
Patch by Bénédikt Tran.

0 commit comments

Comments
 (0)