From eeff3537de0fe4a6d4f5dc3d04cd2dc28c3a044f Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Wed, 12 Feb 2020 11:24:10 +0900 Subject: Fix tests for membership to use 'not in' flake8 reports: E713 test for membership should be 'not in' Change-Id: I4446be67c431b7267105b53478d2ceba2af758d7 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/254451 Tested-by: David Pursehouse Reviewed-by: Mike Frysinger --- subcmds/branches.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subcmds/branches.py') diff --git a/subcmds/branches.py b/subcmds/branches.py index fb60d7de..b8958848 100644 --- a/subcmds/branches.py +++ b/subcmds/branches.py @@ -158,7 +158,7 @@ is shown, then the branch appears in all projects. for b in i.projects: have.add(b.project) for p in projects: - if not p in have: + if p not in have: paths.append(p.relpath) s = ' %s %s' % (in_type, ', '.join(paths)) -- cgit v1.2.3-54-g00ecf