Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
Fix E713: Test for membership should be 'not in'
· 14a31f10
Bastian Blank
authored
May 19, 2018
and
Joerg Jaspert
committed
May 19, 2018
14a31f10
Merge branch 'fix-E713' into 'master'
· e663bccb
Joerg Jaspert
authored
May 19, 2018
Fix E713: Test for membership should be 'not in' See merge request
!53
e663bccb
Show whitespace changes
Inline
Side-by-side
dak/bts_categorize.py
View file @
e663bccb
...
...
@@ -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
):
"""
...
...
dak/cruft_report.py
View file @
e663bccb
...
...
@@ -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
:
...
...
dak/process_new.py
View file @
e663bccb
...
...
@@ -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
,
...
...
setup.cfg
View file @
e663bccb
...
...
@@ -36,7 +36,6 @@ ignore =
E502,
E703,
E704,
E713,
E722,
E731,
E741,
...
...
tests/db_test.py
View file @
e663bccb
...
...
@@ -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
:
...
...