summaryrefslogtreecommitdiff
path: root/unidecode
diff options
context:
space:
mode:
authorKarol Sikora <me@karolsikora.me>2014-11-25 13:10:03 +0100
committerKarol Sikora <me@karolsikora.me>2014-11-25 13:10:03 +0100
commit9cef84e3cbd65a04aa9c42b36b5c2590980a17d5 (patch)
tree219286a6ade240dc70e7d0b170d29d74789f6578 /unidecode
parentda1a92a978878e0af5f1e9fb1a169bf45b098833 (diff)
downloadunidecode-9cef84e3cbd65a04aa9c42b36b5c2590980a17d5.tar.gz
fix of importing definitions
Diffstat (limited to 'unidecode')
-rw-r--r--unidecode/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/unidecode/__init__.py b/unidecode/__init__.py
index d3866dd..2cb96c4 100644
--- a/unidecode/__init__.py
+++ b/unidecode/__init__.py
@@ -51,7 +51,7 @@ def unidecode(string):
table = Cache[section]
except KeyError:
try:
- mod = __import__('unidecode.x%03x'%(section), [], [], ['data'])
+ mod = __import__('unidecode.x%03x'%(section), globals(), locals(), ['data'])
except ImportError:
Cache[section] = None
continue # No match: ignore this character and carry on.