diff options
author | Karol Sikora <me@karolsikora.me> | 2014-11-25 13:10:03 +0100 |
---|---|---|
committer | Karol Sikora <me@karolsikora.me> | 2014-11-25 13:10:03 +0100 |
commit | 9cef84e3cbd65a04aa9c42b36b5c2590980a17d5 (patch) | |
tree | 219286a6ade240dc70e7d0b170d29d74789f6578 /unidecode | |
parent | da1a92a978878e0af5f1e9fb1a169bf45b098833 (diff) | |
download | unidecode-9cef84e3cbd65a04aa9c42b36b5c2590980a17d5.tar.gz |
fix of importing definitions
Diffstat (limited to 'unidecode')
-rw-r--r-- | unidecode/__init__.py | 2 |
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. |