From 944c7145bff6967eda04306c15e4d2c41b63ac1d Mon Sep 17 00:00:00 2001 From: Danimar Ribeiro Date: Thu, 13 Feb 2020 00:09:56 -0300 Subject: [PATCH] Revert a few things before for nfe --- pytrustnfe/nfe/assinatura.py | 10 +++++----- setup.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pytrustnfe/nfe/assinatura.py b/pytrustnfe/nfe/assinatura.py index 637bc7d..3f53d10 100644 --- a/pytrustnfe/nfe/assinatura.py +++ b/pytrustnfe/nfe/assinatura.py @@ -24,7 +24,7 @@ class Assinatura(object): method=signxml.methods.enveloped, signature_algorithm="rsa-sha1", digest_algorithm="sha1", - c14n_algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments", + c14n_algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315", ) ns = {} @@ -42,9 +42,9 @@ class Assinatura(object): ) if getchildren and element_signed is not None and signature is not None: - element_intern = element_signed.getchildren() - element_intern.append(signature) + child = element_signed.getchildren() + child.append(signature) elif element_signed is not None and signature is not None: - element_extern = element_signed.getparent() - element_extern.append(signature) + parent = element_signed.getparent() + parent.append(signature) return etree.tostring(signed_root, encoding=str) diff --git a/setup.py b/setup.py index ee18183..9746ea0 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages -VERSION = "1.0.46" +VERSION = "1.0.47" setup(