From e53d6dc7a4b38f6a29239c33d5db656a93e94f85 Mon Sep 17 00:00:00 2001 From: founderielabs Date: Sat, 21 Nov 2026 18:37:54 +0530 Subject: [PATCH 1/2] Docs: fix duplicated word in AttlistDeclHandler description --- Doc/library/pyexpat.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/pyexpat.rst b/Doc/library/pyexpat.rst index f6d4aca383481f7..1101eb8ec2df233 100644 --- a/Doc/library/pyexpat.rst +++ b/Doc/library/pyexpat.rst @@ -604,7 +604,7 @@ otherwise stated. declaration declares three attributes, this handler is called three times, once for each attribute. *elname* is the name of the element to which the declaration applies and *attname* is the name of the attribute declared. The - The attribute type is a string passed as *type*: + attribute type is a string passed as *type*: ``'CDATA'``, ``'ID'``, ``'IDREF'``, ``'IDREFS'``, ``'ENTITY'``, ``'ENTITIES'``, ``'NMTOKEN'`` or ``'NMTOKENS'``, an enumeration like ``'(x|y)'``, From a6bc9322e89f56ec321d793fbb60341b01b0526f Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Sun, 22 Nov 2026 11:22:46 +0000 Subject: [PATCH 2/2] Move 'The' --- Doc/library/pyexpat.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/pyexpat.rst b/Doc/library/pyexpat.rst index 1101eb8ec2df233..712b31367577f70 100644 --- a/Doc/library/pyexpat.rst +++ b/Doc/library/pyexpat.rst @@ -603,8 +603,8 @@ otherwise stated. Called for each declared attribute for an element type. If an attribute list declaration declares three attributes, this handler is called three times, once for each attribute. *elname* is the name of the element to which the - declaration applies and *attname* is the name of the attribute declared. The - attribute type is a string passed as *type*: + declaration applies and *attname* is the name of the attribute declared. + The attribute type is a string passed as *type*: ``'CDATA'``, ``'ID'``, ``'IDREF'``, ``'IDREFS'``, ``'ENTITY'``, ``'ENTITIES'``, ``'NMTOKEN'`` or ``'NMTOKENS'``, an enumeration like ``'(x|y)'``,