Patchwork [11,of,12,topics] flake8: fix E713 style

login
register
mail settings
Submitter Sean Farley
Date Aug. 31, 2016, 3:58 a.m.
Message ID <b579ff9e41931a26ded1.1472615897@laptop.local>
Download mbox | patch
Permalink /patch/16512/
State Accepted
Headers show

Comments

Sean Farley - Aug. 31, 2016, 3:58 a.m.
# HG changeset patch
# User Sean Farley <sean@farley.io>
# Date 1472595783 25200
#      Tue Aug 30 15:23:03 2016 -0700
# Node ID b579ff9e41931a26ded12b409925d0fa40d9b05d
# Parent  b4d2daf39a825e02d0afcd62471b1e6c2d6b2b84
# EXP-Topic flake8
flake8: fix E713 style

Patch

diff --git a/hgext3rd/topic/__init__.py b/hgext3rd/topic/__init__.py
--- a/hgext3rd/topic/__init__.py
+++ b/hgext3rd/topic/__init__.py
@@ -82,11 +82,11 @@  def _namemap(repo, name):
             r = revs[idx - 1]
         except IndexError:
             msg = _('cannot resolve "%s": topic "%s" has only %d changesets')
             raise error.Abort(msg % (name, topic, len(revs)))
         return [repo[r].node()]
-    if not name in repo.topics:
+    if name not in repo.topics:
         return []
     return [ctx.node() for ctx in
             repo.set('not public() and extra(topic, %s)', name)]
 
 def _nodemap(repo, node):
diff --git a/setup.cfg b/setup.cfg
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,2 +1,2 @@ 
 [flake8]
-ignore = E261, E266, E302, E129, E731, E124, E713
+ignore = E261, E266, E302, E129, E731, E124