mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
upload: Fix tests for object identity to use 'is not'
flake8 reports: E714 test for object identity should be 'is not' Change-Id: Ib8c4100babaf952bbfe65fd56555ece8a958e4b0 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/254450 Tested-by: David Pursehouse <dpursehouse@collab.net> Reviewed-by: Mike Frysinger <vapier@google.com>
This commit is contained in:
parent
e5913ae410
commit
8f78a83083
@ -326,12 +326,12 @@ Gerrit Code Review: https://www.gerritcodereview.com/
|
|||||||
|
|
||||||
key = 'review.%s.autoreviewer' % project.GetBranch(name).remote.review
|
key = 'review.%s.autoreviewer' % project.GetBranch(name).remote.review
|
||||||
raw_list = project.config.GetString(key)
|
raw_list = project.config.GetString(key)
|
||||||
if not raw_list is None:
|
if raw_list is not None:
|
||||||
people[0].extend([entry.strip() for entry in raw_list.split(',')])
|
people[0].extend([entry.strip() for entry in raw_list.split(',')])
|
||||||
|
|
||||||
key = 'review.%s.autocopy' % project.GetBranch(name).remote.review
|
key = 'review.%s.autocopy' % project.GetBranch(name).remote.review
|
||||||
raw_list = project.config.GetString(key)
|
raw_list = project.config.GetString(key)
|
||||||
if not raw_list is None and len(people[0]) > 0:
|
if raw_list is not None and len(people[0]) > 0:
|
||||||
people[1].extend([entry.strip() for entry in raw_list.split(',')])
|
people[1].extend([entry.strip() for entry in raw_list.split(',')])
|
||||||
|
|
||||||
def _FindGerritChange(self, branch):
|
def _FindGerritChange(self, branch):
|
||||||
|
Loading…
Reference in New Issue
Block a user