Add whitespace around keywords
This fixes pep8 E275 which wants whitespace after assert and del. Change-Id: I1f8659f462aa91c3fdf8f7eb8b939b67c0ce9f55
This commit is contained in:
@@ -1384,7 +1384,7 @@ class TestGithubDriver(ZuulTestCase):
|
||||
# now check if the merge was done via rebase
|
||||
merges = [report for report in self.fake_github.github_data.reports
|
||||
if report[2] == 'merge']
|
||||
assert(len(merges) == 1 and merges[0][3] == 'squash')
|
||||
assert (len(merges) == 1 and merges[0][3] == 'squash')
|
||||
|
||||
@simple_layout('layouts/basic-github.yaml', driver='github')
|
||||
def test_invalid_event(self):
|
||||
|
||||
@@ -1470,7 +1470,7 @@ class GerritConnection(ZKChangeCacheMixin, ZKBranchCacheMixin, BaseConnection):
|
||||
# for large projects like nova
|
||||
alldata = []
|
||||
chunk, more_changes = _query_chunk(query, event)
|
||||
while(chunk):
|
||||
while chunk:
|
||||
alldata.extend(chunk)
|
||||
if more_changes is None:
|
||||
# continue sortKey based (before Gerrit 2.9)
|
||||
|
||||
@@ -3735,7 +3735,7 @@ class ExecutorServer(BaseMergeServer):
|
||||
sensor.reportStats(self.statsd, base_key)
|
||||
|
||||
def finishJob(self, unique):
|
||||
del(self.job_workers[unique])
|
||||
del self.job_workers[unique]
|
||||
self.log.debug(
|
||||
"Finishing Job: %s, queue(%d): %s",
|
||||
unique,
|
||||
|
||||
Reference in New Issue
Block a user