There was an error while loading. Please reload this page.
1 parent 7a4930a commit 55719c8Copy full SHA for 55719c8
1 file changed
src/pyff/samlmd.py
@@ -521,7 +521,7 @@ def entitiesdescriptor(
521
# Clean unused namespaces. Prefixes referenced only from QName-valued attributes
522
# (xsi:type="xsd:string") are invisible to lxml's usage tracking, so collect and
523
# preserve them explicitly - see issue #333.
524
- keep_ns_prefixes = sorted({'xs', 'xsi'} | qname_prefixes(t))
+ keep_ns_prefixes = qname_prefixes(t)
525
etree.cleanup_namespaces(t, keep_ns_prefixes=keep_ns_prefixes)
526
527
if config.devel_write_xml_to_file:
0 commit comments