Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mentors.debian.net
debexpo
Commits
308ee163
Commit
308ee163
authored
Aug 17, 2012
by
Clément Schreiner
Browse files
Small change to the result's string.
parent
95e8a814
Changes
1
Hide whitespace changes
Inline
Side-by-side
debexpo/plugins/closedbugs.py
View file @
308ee163
...
...
@@ -68,7 +68,8 @@ class ClosedbugsTest(PluginResult):
return
d
def
__str__
(
self
):
if
self
.
closes_wnpp
:
if
(
self
.
closes_wnpp
and
self
.
nb_closed
==
1
and
self
.
nb_errors
==
0
):
return
'Package closes a WNPP bug'
strings
=
[]
...
...
@@ -77,10 +78,10 @@ class ClosedbugsTest(PluginResult):
plural
=
's'
if
self
.
nb_closed
>
1
else
''
))
if
self
.
nb_errors
:
strings
.
append
(
'claims to be closing {} bug{plural}'
.
format
(
strings
.
append
(
'
wrongfully
claims to be closing {} bug{plural}'
.
format
(
self
.
nb_errors
,
plural
=
's'
if
self
.
nb_closed
>
1
else
''
))
return
'Package '
+
'
but
'
.
join
(
strings
)
return
'Package '
+
'
and
'
.
join
(
strings
)
class
ClosedBug
(
PluginResult
):
"""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment