Skip to content

Commit e219450

Browse files
ukarroumhartwork
andauthored
Update Lib/xml/sax/expatreader.py
Co-authored-by: Sebastian Pipping <sebastian@pipping.org>
1 parent 7c0da60 commit e219450

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/xml/sax/expatreader.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,9 @@ def start_element_ns(self, name, attrs):
375375
newattrs[apair] = value
376376
qnames[apair] = qname
377377

378+
if not self._namespace_prefixes:
379+
elem_qname = None
380+
378381
self._cont_handler.startElementNS(pair, elem_qname,
379382
AttributesNSImpl(newattrs, qnames))
380383

0 commit comments

Comments
 (0)