Browse Source

Update __init__.py

pull/283/head
Gabrie Balog 8 years ago
committed by GitHub
parent
commit
ecf5a21603
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pytrustnfe/xml/__init__.py

2
pytrustnfe/xml/__init__.py

@ -59,7 +59,7 @@ def render_xml(path, template_name, remove_empty, **nfe):
def sanitize_response(response):
if 'encoding="utf-8"' in response or 'encoding="UTF-8"' in response:
response = re.sub('encoding="UTF-8"', '', response
response = re.sub('encoding="UTF-8"', '', response)
tree = etree.fromstring(response)
# Remove namespaces inuteis na resposta
for elem in tree.getiterator():

Loading…
Cancel
Save