[PATCH] pycompat: use imported pickle to avoid test-check-pyflakes error
Martin von Zweigbergk
martinvonz at google.com
Fri Jun 24 20:55:29 UTC 2016
# HG changeset patch
# User Martin von Zweigbergk <martinvonz at google.com>
# Date 1466800628 25200
# Fri Jun 24 13:37:08 2016 -0700
# Node ID d9ec75dd78b85b8fd1c986141850fa8774a95e68
# Parent aa1d56003872cba207d908706da059141dd901a5
pycompat: use imported pickle to avoid test-check-pyflakes error
I get this error:
mercurial/pycompat.py:17: 'pickle' imported but unused
I don't know what the code does, but this change fixes the test
failure.
diff -r aa1d56003872 -r d9ec75dd78b8 mercurial/pycompat.py
--- a/mercurial/pycompat.py Mon Jun 20 23:31:45 2016 +0530
+++ b/mercurial/pycompat.py Fri Jun 24 13:37:08 2016 -0700
@@ -15,6 +15,7 @@
pickle.dumps
except ImportError:
import pickle
+ pickle.dumps
try:
import cStringIO as io
More information about the Mercurial-devel
mailing list