This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author scoder
Recipients scoder
Date 2020-10-01.08:09:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1601539771.76.0.649263421271.issue41900@roundup.psfhosted.org>
In-reply-to
Content
import xml.etree.ElementTree as ET
xml="""
<X xmlns="http://soap.sforce.com/2006/04/metadata">
    <Y targets="lightning__AppPage,lightning__HomePage"></Y>
</X>"""
print(ET.canonicalize(xml))

Fails with:
ValueError: Namespace "" is not declared in scope
when trying to build the QName of the unnamespaced "targets" attribute.

Originally reported for lxml here:
https://bugs.launchpad.net/lxml/+bug/1869455
History
Date User Action Args
2020-10-01 08:09:31scodersetrecipients: + scoder
2020-10-01 08:09:31scodersetmessageid: <1601539771.76.0.649263421271.issue41900@roundup.psfhosted.org>
2020-10-01 08:09:31scoderlinkissue41900 messages
2020-10-01 08:09:30scodercreate