pyflakes: use pycompat.pickles to prevent error
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Fri, 24 Jun 2016 02:04:43 +0200
changeset 29405 fbe380dc227a
parent 29404 591a8069b60e
child 29406 c2193e59ef9f
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
mercurial/pycompat.py
--- a/mercurial/pycompat.py	Tue Jun 21 06:29:23 2016 -0700
+++ b/mercurial/pycompat.py	Fri Jun 24 02:04:43 2016 +0200
@@ -15,6 +15,7 @@
     pickle.dumps
 except ImportError:
     import pickle
+    pickle.dumps # silence pyflakes
 
 try:
     import cStringIO as io