Patchwork pycompat: use imported pickle to avoid test-check-pyflakes error

login
register
mail settings
Submitter via Mercurial-devel
Date June 24, 2016, 8:55 p.m.
Message ID <d9ec75dd78b85b8fd1c9.1466801729@martinvonz.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/15606/
State Superseded
Headers show

Comments

via Mercurial-devel - June 24, 2016, 8:55 p.m.
# HG changeset patch
# User Martin von Zweigbergk <martinvonz@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.

Patch

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