changeset 27534:88b32dcc25b6

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.
author Bryan O'Sullivan <bos@serpentine.com>
date Wed, 23 Dec 2015 16:22:20 -0800
parents a801d331a022
children 0d0f4070f6d7
files hgext/histedit.py
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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