Skip to content
Commits on Source (2)
......@@ -100,7 +100,7 @@ class BugClassifier(object):
tagged_bugs_ftp += tagged_bugs[tags]
return [ bug for bug in bts.get_status( bts.get_bugs("package", "ftp.debian.org" ) ) \
if bug.pending=='pending' and not bug.bug_num in tagged_bugs_ftp ]
if bug.pending=='pending' and bug.bug_num not in tagged_bugs_ftp ]
def classify_bug(self, bug):
"""
......
......@@ -485,9 +485,9 @@ def report_outdated_nonfree(suite, session, rdeps=False):
arch = package[2]
if arch == 'all':
continue
if not source in packages:
if source not in packages:
packages[source] = {}
if not binary in packages[source]:
if binary not in packages[source]:
packages[source][binary] = set()
packages[source][binary].add(arch)
if packages:
......
......@@ -762,7 +762,7 @@ def sort_uploads(new_queue, uploads, session, nobinaries=False):
filter_by(trainee=False, policy_queue=new_queue).distinct()]
for upload in uploads:
source = upload.changes.source
if not source in sources:
if source not in sources:
sources[source] = []
sources[source].append({'upload': upload,
'date': upload.changes.created,
......
......@@ -36,7 +36,6 @@ ignore =
E502,
E703,
E704,
E713,
E722,
E731,
E741,
......
......@@ -140,7 +140,7 @@ class DBDakTestCase(DakTestCase):
for f in self.file.values():
f.sha1sum = 'sha1sum'
f.sha256sum = 'sha256sum'
if not 'gnome-hello_3.0-1' in f.filename:
if 'gnome-hello_3.0-1' not in f.filename:
archive_files.append(ArchiveFile(
archive=self.archive, component=self.comp['main'], file=f))
else:
......