Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.

Commit

Permalink
Changed str to basestring to accept unicode - is python 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
danimaribeiro committed Aug 25, 2015
1 parent a07934a commit 812a2f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sped/campos.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def set(self, registro, valor):
return
if valor and not self.__class__.validar(valor):
raise FormatoInvalidoError(registro, self.nome)
if not isinstance(valor, str):
if not isinstance(valor, basestring):
raise FormatoInvalidoError(registro, self.nome)
registro.valores[self._indice] = valor or ''

Expand Down

0 comments on commit 812a2f5

Please sign in to comment.