Gabrie Balog
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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(): |
|
|
|
|