Skip to content

Commit

Permalink
[update] separating 'cobranca' from 'pagamento'
Browse files Browse the repository at this point in the history
  • Loading branch information
seiti committed Oct 19, 2015
1 parent 7806a41 commit f558b0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cnab240/tipos.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def __init__(self, banco, **kwargs):
self.banco = banco
arquivo = kwargs.get('arquivo')
if isinstance(arquivo, (file, codecs.StreamReaderWriter)):
return self.carregar_retorno(arquivo)
return self.carregar_retorno_cobranca(arquivo)

self.header = self.banco.registros.HeaderArquivo(**kwargs)
self.trailer = self.banco.registros.TrailerArquivo(**kwargs)
Expand Down Expand Up @@ -170,7 +170,7 @@ def __len__(self):
""" Return the len for the current set of records. """
return self.trailer.totais_quantidade_registros

def carregar_retorno(self, arquivo):
def carregar_retorno_cobranca(self, arquivo):

lote_aberto = None
evento_aberto = None
Expand Down

0 comments on commit f558b0b

Please sign in to comment.