mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Create _attr/_attrNS lazily.
This commit is contained in:
parent
14aa280de2
commit
7b77188e89
2 changed files with 34 additions and 9 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue