Skip to content

Commit

Permalink
Sempre ocorre um problema de encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
danimaribeiro committed Mar 7, 2017
1 parent c0bf445 commit 5b8ac25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cnab240/registro.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ def valor(self, valor):
print "{0} - {1}".format(self.nome, valor)
raise errors.TipoError(self, valor)
if len(valor) > self.digitos:
print u"truncating - {0} - {1}".format(self.nome, valor)
# raise errors.NumDigitosExcedidoError(self, valor)
print u"truncating - {0}".format(self.nome)
# reduz o len(valor)
cortar = len(valor) - self.digitos
valor = valor[:-(cortar)]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name='python-cnab',
version='0.1.11',
version='0.1.12',
author='Trustcode',
author_email='suporte@trustcode.com.br',
url='https://github.com/Trust-Code/python-cnab',
Expand Down

0 comments on commit 5b8ac25

Please sign in to comment.