Browse Source

Correcao de retorno da prefeitura NFS-e

pull/283/head
Gabriel Balog 8 years ago
parent
commit
80ea0c2420
  1. 1
      pytrustnfe/xml/__init__.py

1
pytrustnfe/xml/__init__.py

@ -58,6 +58,7 @@ def render_xml(path, template_name, remove_empty, **nfe):
def sanitize_response(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