From d1749031b7c25f32eb03921f335853eea8fda323 Mon Sep 17 00:00:00 2001 From: Gabriel Balog Date: Thu, 8 Feb 2018 11:30:02 -0200 Subject: [PATCH] =?UTF-8?q?[FIX]=20Corre=C3=A7=C3=A3o=20na=20volta=20da=20?= =?UTF-8?q?prefeitura?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pytrustnfe/xml/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pytrustnfe/xml/__init__.py b/pytrustnfe/xml/__init__.py index 89279e9..cc1907e 100644 --- a/pytrustnfe/xml/__init__.py +++ b/pytrustnfe/xml/__init__.py @@ -58,8 +58,6 @@ 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) tree = etree.fromstring(response) # Remove namespaces inuteis na resposta for elem in tree.getiterator():