Browse Source
Define basestring and unicode in Python 3
pull/110/head
Christian Clauss
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
0 deletions
-
pynfe/utils/__init__.py
|
|
|
@ -16,6 +16,13 @@ try: |
|
|
|
except ImportError: |
|
|
|
raise Exception('Falhou ao importar flags') |
|
|
|
|
|
|
|
try: |
|
|
|
basestring |
|
|
|
unicode |
|
|
|
except NameError: |
|
|
|
basestring = str |
|
|
|
unicode = str |
|
|
|
|
|
|
|
|
|
|
|
# @memoize |
|
|
|
def so_numeros(texto): |
|
|
|
|