summaryrefslogtreecommitdiff
path: root/babel/localedata.py
diff options
context:
space:
mode:
authorFelix Schwarz <felix.schwarz@oss.schwarz.eu>2011-09-26 09:42:43 +0000
committerFelix Schwarz <felix.schwarz@oss.schwarz.eu>2011-09-26 09:42:43 +0000
commit0e99515b298fa3b2f6e0003c0cb3631207720005 (patch)
tree13b708d2f93ffba586824d76528867e7e719cfd8 /babel/localedata.py
parent0b65735f418713c945f879d0f5d91d5ed47d4420 (diff)
downloadbabel-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.py6
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'