From 5e67945b3c04bc8cb6b4cf5ea5df400a76daf329 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sat, 9 Nov 2024 23:00:54 +0100 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> --- Doc/library/pyexpat.rst | 2 ++ .../Library/2024-11-09-15-59-51.gh-issue-126624.bN53Va.rst | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Doc/library/pyexpat.rst b/Doc/library/pyexpat.rst index c72ba3dbaa0c92..9b4bad19d3929d 100644 --- a/Doc/library/pyexpat.rst +++ b/Doc/library/pyexpat.rst @@ -944,6 +944,8 @@ The ``errors`` module has the following attributes: .. data:: XML_ERROR_NOT_STARTED The parser was tried to be stopped or suspended before it started. + + .. versionadded:: next .. rubric:: Footnotes diff --git a/Misc/NEWS.d/next/Library/2024-11-09-15-59-51.gh-issue-126624.bN53Va.rst b/Misc/NEWS.d/next/Library/2024-11-09-15-59-51.gh-issue-126624.bN53Va.rst index 9c0490a0ec7907..468840a651c253 100644 --- a/Misc/NEWS.d/next/Library/2024-11-09-15-59-51.gh-issue-126624.bN53Va.rst +++ b/Misc/NEWS.d/next/Library/2024-11-09-15-59-51.gh-issue-126624.bN53Va.rst @@ -1 +1,2 @@ -Expose error code ``XML_ERROR_NOT_STARTED`` of Expat >=2.6.4 in :mod:`xml.parsers.expat.errors`. +Expose error code :data:`~xml.parsers.expat.errors.XML_ERROR_NOT_STARTED` +of Expat >=2.6.4 in :mod:`xml.parsers.expat.errors`.