Skip to content

Commit df1acad

Browse files
committed
make flake8 happy
1 parent 1feaafe commit df1acad

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

homu/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,7 @@ def start_build(state, repo_cfgs, buildbot_slots, logger, db, git_cfg):
12451245
builders += ['checks-' + key for key, value in repo_cfg['checks'].items() if 'name' in value] # noqa
12461246
only_status_builders = False
12471247

1248-
if len(builders) is 0:
1248+
if len(builders) == 0:
12491249
raise RuntimeError('Invalid configuration')
12501250

12511251
lazy_debug(logger, lambda: "start_build: builders={!r}".format(builders))
@@ -1699,7 +1699,7 @@ def main():
16991699
builders += ['status-' + key for key, value in repo_cfg['status'].items() if 'context' in value] # noqa
17001700
if 'checks' in repo_cfg:
17011701
builders += ['checks-' + key for key, value in repo_cfg['checks'].items() if 'name' in value] # noqa
1702-
if len(builders) is 0:
1702+
if len(builders) == 0:
17031703
raise RuntimeError('Invalid configuration')
17041704

17051705
state.init_build_res(builders, use_db=False)

homu/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ def fail(err):
505505
for name, value in repo_cfg['status'].items():
506506
if 'context' in value and value['context'] == info['context']:
507507
status_name = name
508-
if status_name is "":
508+
if status_name == "":
509509
return 'OK'
510510

511511
if info['state'] == 'pending':

0 commit comments

Comments
 (0)