histedit: don't bother with cPickle, demand-load pickle
authorBryan O'Sullivan <bos@serpentine.com>
Wed, 23 Dec 2015 16:22:20 -0800
changeset 27534 88b32dcc25b6
parent 27533 a801d331a022
child 27535 0d0f4070f6d7
histedit: don't bother with cPickle, demand-load pickle We're unlikely to ever need the pickle module, so there's no good reason to force loading of its faster cousin.
hgext/histedit.py
--- a/hgext/histedit.py	Mon Dec 28 10:11:48 2015 -0600
+++ b/hgext/histedit.py	Wed Dec 23 16:22:20 2015 -0800
@@ -169,11 +169,7 @@
 
 """
 
-try:
-    import cPickle as pickle
-    pickle.dump # import now
-except ImportError:
-    import pickle
+import pickle
 import errno
 import os
 import sys