Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d2f5a9a

Browse files
committed
Fixed a bug that caused namespace names to be reported as lists rather
than tuples.
1 parent 4a41f54 commit d2f5a9a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/xml/sax/expatreader.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ def start_element_ns(self, name, attrs):
145145
pair = string.split(name)
146146
if len(pair) == 1:
147147
pair = (None, name)
148+
else:
149+
pair = tuple(pair)
148150

149151
newattrs = {}
150152
for (aname, value) in attrs.items():

0 commit comments

Comments
 (0)