diff options
author | Felix Schwarz <felix.schwarz@oss.schwarz.eu> | 2011-09-26 09:42:43 +0000 |
---|---|---|
committer | Felix Schwarz <felix.schwarz@oss.schwarz.eu> | 2011-09-26 09:42:43 +0000 |
commit | 0e99515b298fa3b2f6e0003c0cb3631207720005 (patch) | |
tree | 13b708d2f93ffba586824d76528867e7e719cfd8 /babel/localedata.py | |
parent | 0b65735f418713c945f879d0f5d91d5ed47d4420 (diff) | |
download | babel-0e99515b298fa3b2f6e0003c0cb3631207720005.tar.gz |
add a compat module to shield the code from changes in different versions of Python
Diffstat (limited to 'babel/localedata.py')
-rw-r--r-- | babel/localedata.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/babel/localedata.py b/babel/localedata.py index e051732..d128ec8 100644 --- a/babel/localedata.py +++ b/babel/localedata.py @@ -19,12 +19,10 @@ import os import cPickle as pickle -try: - import threading -except ImportError: - import dummy_threading as threading from UserDict import DictMixin +from babel.compat import threading + __all__ = ['exists', 'locale_identifiers', 'load'] __docformat__ = 'restructuredtext en' |