Skip to content

Commit 60818f3

Browse files
committed
Fix pylint warnings on F18
1 parent 0bf3df1 commit 60818f3

3 files changed

Lines changed: 14 additions & 9 deletions

File tree

bin/bugzilla

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -724,15 +724,15 @@ def _do_modify(bz, opt, args):
724724
status = "CLOSED"
725725

726726
update = bz.build_update(
727-
comment=opt.comment or None,
728-
comment_private=opt.private or None,
729-
cc_add=opt.cc and opt.cc[:] or None,
730-
qa_contact=opt.qa_contact or None,
731-
assigned_to=opt.assignee or None,
732-
status=status,
733-
resolution=opt.close or None,
734-
dupe_of=opt.dupeid or None,
735-
fixed_in=opt.fixed_in or None)
727+
comment=opt.comment or None,
728+
comment_private=opt.private or None,
729+
cc_add=opt.cc and opt.cc[:] or None,
730+
qa_contact=opt.qa_contact or None,
731+
assigned_to=opt.assignee or None,
732+
status=status,
733+
resolution=opt.close or None,
734+
dupe_of=opt.dupeid or None,
735+
fixed_in=opt.fixed_in or None)
736736

737737
flags = []
738738
if opt.flag:

bugzilla/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ def _decode_rfc2231_value(val):
3030
from email import utils
3131
from email import header
3232

33+
# pylint: disable=W1401
34+
# Anomolous backslash in string
3335
val = utils.ecre.sub(' \g<0> ', val)
3436
val = val.strip('"')
3537
return ''.join(f[0].decode(f[1] or 'us-ascii')

bugzilla/nvlbugzilla.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ class NovellBugzilla(Bugzilla32):
4141

4242
bnc_cookie_re = re.compile('^Z.*-bugzilla')
4343
ichain_cookie_re = re.compile('^IPC.*')
44+
# pylint: disable=W1401
45+
# Anomolous backslash in string
4446
cookie_domain_re = re.compile('.*\.novell\.com$')
47+
# pylint: enable=W1401
4548

4649
bugzilla_url = 'https://bugzilla.novell.com/xmlrpc.cgi'
4750
logout_url = 'https://www.novell.com/cmd/ICSLogout'

0 commit comments

Comments
 (0)