From patchwork Thu Dec 24 00:22:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [05, of, 10, PyPy] histedit: don't bother with cPickle, demand-load pickle From: Bryan O'Sullivan X-Patchwork-Id: 12339 Message-Id: <921ca7a0d4bb771505fd.1450916540@bryano-mbp.local> To: mercurial-devel@selenic.com Date: Wed, 23 Dec 2015 16:22:20 -0800 We're unlikely to ever need the pickle module, so there's no good reason to force loading of its faster cousin. diff --git a/hgext/histedit.py b/hgext/histedit.py --- a/hgext/histedit.py +++ b/hgext/histedit.py @@ -169,11 +169,7 @@ the drop to be implicit for missing comm """ -try: - import cPickle as pickle - pickle.dump # import now -except ImportError: - import pickle +import pickle import errno import os import sys