diff 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
line wrap: on
line diff
--- 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'
 
Copyright (C) 2012-2017 Edgewall Software