comparison mercurial/pycompat.py @ 29405:fbe380dc227a

pyflakes: use pycompat.pickles to prevent error The pyflakes in my test box complain about pickle in pycompat. mercurial/pycompat.py:17: 'pickle' imported but unused
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Fri, 24 Jun 2016 02:04:43 +0200
parents b501579147f1
children 2646fbba4ca7
comparison
equal deleted inserted replaced
29404:591a8069b60e 29405:fbe380dc227a
13 try: 13 try:
14 import cPickle as pickle 14 import cPickle as pickle
15 pickle.dumps 15 pickle.dumps
16 except ImportError: 16 except ImportError:
17 import pickle 17 import pickle
18 pickle.dumps # silence pyflakes
18 19
19 try: 20 try:
20 import cStringIO as io 21 import cStringIO as io
21 stringio = io.StringIO 22 stringio = io.StringIO
22 except ImportError: 23 except ImportError: