Mercurial > babel > mirror
comparison babel/localedata.py @ 567:c81a11cb1476 trunk
add a compat module to shield the code from changes in different versions of Python
author | fschwarz |
---|---|
date | Mon, 26 Sep 2011 09:42:43 +0000 |
parents | 1de26da5aa25 |
children |
comparison
equal
deleted
inserted
replaced
566:593157da23f3 | 567:c81a11cb1476 |
---|---|
17 more convenient interface for accessing the locale data. | 17 more convenient interface for accessing the locale data. |
18 """ | 18 """ |
19 | 19 |
20 import os | 20 import os |
21 import cPickle as pickle | 21 import cPickle as pickle |
22 try: | |
23 import threading | |
24 except ImportError: | |
25 import dummy_threading as threading | |
26 from UserDict import DictMixin | 22 from UserDict import DictMixin |
23 | |
24 from babel.compat import threading | |
27 | 25 |
28 __all__ = ['exists', 'locale_identifiers', 'load'] | 26 __all__ = ['exists', 'locale_identifiers', 'load'] |
29 __docformat__ = 'restructuredtext en' | 27 __docformat__ = 'restructuredtext en' |
30 | 28 |
31 _cache = {} | 29 _cache = {} |