sp_fr: do not create QName with None namespace (#31595)
It's not supported with lxml<4.3.3.
This commit is contained in:
parent
8272888ec4
commit
4e2ba91736
|
@ -116,7 +116,7 @@ class Schema(object):
|
|||
target = self.elements
|
||||
else:
|
||||
raise NotImplementedError
|
||||
if not d['name'].namespace:
|
||||
if not d['name'].namespace and self.target_namespace:
|
||||
d['name'] = ET.QName(self.target_namespace, d['name'].localname)
|
||||
target[d['name']] = d
|
||||
|
||||
|
|
Loading…
Reference in New Issue