diff options
Diffstat (limited to 'Lib/xml/dom/expatbuilder.py')
-rw-r--r-- | Lib/xml/dom/expatbuilder.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/xml/dom/expatbuilder.py b/Lib/xml/dom/expatbuilder.py index b4b28e4..ff9c1f1 100644 --- a/Lib/xml/dom/expatbuilder.py +++ b/Lib/xml/dom/expatbuilder.py @@ -760,6 +760,7 @@ class Namespaces: del self._ns_ordered_prefixes[:] if attributes: + node._ensure_attributes() _attrs = node._attrs _attrsNS = node._attrsNS for i in range(0, len(attributes), 2): |