From ecf5a21603ed3d34c70e0d76c43047d5a899b2c1 Mon Sep 17 00:00:00 2001 From: Gabrie Balog Date: Fri, 4 May 2018 12:04:39 -0300 Subject: [PATCH] Update __init__.py --- pytrustnfe/xml/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytrustnfe/xml/__init__.py b/pytrustnfe/xml/__init__.py index 852a078..7ec0952 100644 --- a/pytrustnfe/xml/__init__.py +++ b/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():