Fix style issue

This commit is contained in:
Adrián Chaves 2020-08-21 17:04:02 +02:00
parent e90be0d8a5
commit afd3a4d116
1 changed files with 9 additions and 1 deletions

View File

@ -41,7 +41,15 @@ def xmliter(obj, nodename):
r = re.compile(r'<%(np)s[\s>].*?</%(np)s>' % {'np': nodename_patt}, re.DOTALL)
for match in r.finditer(text):
nodetext = document_header + match.group().replace(nodename, '%s %s' % (nodename, ' '.join(namespaces.values())), 1) + header_end
nodetext = (
document_header
+ match.group().replace(
nodename,
'%s %s' % (nodename, ' '.join(namespaces.values())),
1
)
+ header_end
)
yield Selector(text=nodetext, type='xml')