Patchwork [evolve-ext] inhibit: remove unused import

login
register
mail settings
Submitter Laurent Charignon
Date Nov. 20, 2015, 10:44 p.m.
Message ID <2fc15e372ac7b7fbfc51.1448059461@lcharignon-mbp.local>
Download mbox | patch
Permalink /patch/11552/
State Accepted
Headers show

Comments

Laurent Charignon - Nov. 20, 2015, 10:44 p.m.
# HG changeset patch
# User Laurent Charignon <lcharignon@fb.com>
# Date 1447958852 28800
#      Thu Nov 19 10:47:32 2015 -0800
# Node ID 2fc15e372ac7b7fbfc51b9b3e6f1fd7442f1dd6d
# Parent  48547b4c77defdd17c670b1eb0eb94272edf0207
inhibit: remove unused import

The error module from mercurial was imported but unused in the inhibit code.
Pierre-Yves David - Nov. 21, 2015, 12:39 a.m.
On 11/20/2015 02:44 PM, Laurent Charignon wrote:
> # HG changeset patch
> # User Laurent Charignon <lcharignon@fb.com>
> # Date 1447958852 28800
> #      Thu Nov 19 10:47:32 2015 -0800
> # Node ID 2fc15e372ac7b7fbfc51b9b3e6f1fd7442f1dd6d
> # Parent  48547b4c77defdd17c670b1eb0eb94272edf0207
> inhibit: remove unused import

Sure, pushed.

Patch

diff --git a/hgext/inhibit.py b/hgext/inhibit.py
--- a/hgext/inhibit.py
+++ b/hgext/inhibit.py
@@ -18,7 +18,6 @@  from mercurial import localrepo
 from mercurial import obsolete
 from mercurial import extensions
 from mercurial import cmdutil
-from mercurial import error
 from mercurial import scmutil
 from mercurial import commands
 from mercurial import lock as lockmod