comparison babel/localedata.py @ 549:423bb50cb8af

use cPickle instead of pickle for better performance (fixes #225) import_cldr on my system was about 20% faster with this patch (13.9 sec vs. 16.9 sec)
author fschwarz
date Sun, 20 Mar 2011 06:01:11 +0000
parents b33c36615fe9
children
comparison
equal deleted inserted replaced
548:59db0f962e00 549:423bb50cb8af
16 :note: The `Locale` class, which uses this module under the hood, provides a 16 :note: The `Locale` class, which uses this module under the hood, provides a
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 pickle 21 import cPickle as pickle
22 try: 22 try:
23 import threading 23 import threading
24 except ImportError: 24 except ImportError:
25 import dummy_threading as threading 25 import dummy_threading as threading
26 from UserDict import DictMixin 26 from UserDict import DictMixin
Copyright (C) 2012-2017 Edgewall Software