diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-08-23 17:18:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-23 17:18:19 (GMT) |
commit | d7eea0f1ca29b143f070b36d8df8e278dc302a90 (patch) | |
tree | 54b67014b02fdcd59e44f2da698b0556d9687aed /Lib/xml/dom | |
parent | 0aed1e71f3bd6cf298b08cf82078b013a32362c2 (diff) | |
download | cpython-d7eea0f1ca29b143f070b36d8df8e278dc302a90.zip cpython-d7eea0f1ca29b143f070b36d8df8e278dc302a90.tar.gz cpython-d7eea0f1ca29b143f070b36d8df8e278dc302a90.tar.bz2 |
gh-96175: add missing self._localName assignment in `xml.dom.minidom.Attr` (GH-96176)
X-Ref: https://github.com/python/typeshed/pull/8590GH-discussion_r951473977
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 58f6953d6d3fe20d972bfa2f6e982206adcf1353)
Co-authored-by: Kevin Kirsche <Kev.Kirsche+GitHub@gmail.com>
Diffstat (limited to 'Lib/xml/dom')
-rw-r--r-- | Lib/xml/dom/minidom.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/xml/dom/minidom.py b/Lib/xml/dom/minidom.py index d09ef5e..ef8a159 100644 --- a/Lib/xml/dom/minidom.py +++ b/Lib/xml/dom/minidom.py @@ -358,6 +358,8 @@ class Attr(Node): self._name = qName self.namespaceURI = namespaceURI self._prefix = prefix + if localName is not None: + self._localName = localName self.childNodes = NodeList() # Add the single child node that represents the value of the attr |