summaryrefslogtreecommitdiffstats
path: root/subcmds/branches.py
diff options
context:
space:
mode:
authorDavid Pursehouse <dpursehouse@collab.net>2020-02-12 11:24:10 +0900
committerDavid Pursehouse <dpursehouse@collab.net>2020-02-12 05:18:17 +0000
commiteeff3537de0fe4a6d4f5dc3d04cd2dc28c3a044f (patch)
tree27523adfee3445ea85d9dffc622a0eef27e40742 /subcmds/branches.py
parent8f78a83083420f0c0b1da64aad3ab1d060fed1a0 (diff)
downloadgit-repo-eeff3537de0fe4a6d4f5dc3d04cd2dc28c3a044f.tar.gz
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 <dpursehouse@collab.net> Reviewed-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'subcmds/branches.py')
-rw-r--r--subcmds/branches.py2
1 files changed, 1 insertions, 1 deletions
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.
158 for b in i.projects: 158 for b in i.projects:
159 have.add(b.project) 159 have.add(b.project)
160 for p in projects: 160 for p in projects:
161 if not p in have: 161 if p not in have:
162 paths.append(p.relpath) 162 paths.append(p.relpath)
163 163
164 s = ' %s %s' % (in_type, ', '.join(paths)) 164 s = ' %s %s' % (in_type, ', '.join(paths))