Browse Source

Define basestring and unicode in Python 3

pull/110/head
Christian Clauss 5 years ago
committed by GitHub
parent
commit
2cd1915407
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      pynfe/utils/__init__.py

7
pynfe/utils/__init__.py

@ -16,6 +16,13 @@ try:
except ImportError: except ImportError:
raise Exception('Falhou ao importar flags') raise Exception('Falhou ao importar flags')
try:
basestring
unicode
except NameError:
basestring = str
unicode = str
# @memoize # @memoize
def so_numeros(texto): def so_numeros(texto):

Loading…
Cancel
Save