diff options
author | David Pursehouse <dpursehouse@collab.net> | 2020-02-12 11:24:10 +0900 |
---|---|---|
committer | David Pursehouse <dpursehouse@collab.net> | 2020-02-12 05:18:17 +0000 |
commit | eeff3537de0fe4a6d4f5dc3d04cd2dc28c3a044f (patch) | |
tree | 27523adfee3445ea85d9dffc622a0eef27e40742 /gitc_utils.py | |
parent | 8f78a83083420f0c0b1da64aad3ab1d060fed1a0 (diff) | |
download | git-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 'gitc_utils.py')
-rw-r--r-- | gitc_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gitc_utils.py b/gitc_utils.py index b47e181c..8b5b007e 100644 --- a/gitc_utils.py +++ b/gitc_utils.py | |||
@@ -104,11 +104,11 @@ def generate_gitc_manifest(gitc_manifest, manifest, paths=None): | |||
104 | if not proj.upstream and not git_config.IsId(proj.revisionExpr): | 104 | if not proj.upstream and not git_config.IsId(proj.revisionExpr): |
105 | proj.upstream = proj.revisionExpr | 105 | proj.upstream = proj.revisionExpr |
106 | 106 | ||
107 | if not path in gitc_manifest.paths: | 107 | if path not in gitc_manifest.paths: |
108 | # Any new projects need their first revision, even if we weren't asked | 108 | # Any new projects need their first revision, even if we weren't asked |
109 | # for them. | 109 | # for them. |
110 | projects.append(proj) | 110 | projects.append(proj) |
111 | elif not path in paths: | 111 | elif path not in paths: |
112 | # And copy revisions from the previous manifest if we're not updating | 112 | # And copy revisions from the previous manifest if we're not updating |
113 | # them now. | 113 | # them now. |
114 | gitc_proj = gitc_manifest.paths[path] | 114 | gitc_proj = gitc_manifest.paths[path] |