Skip to content

Commit fe5e135

Browse files
committed
setup: Enable abtract-method pylint check and fix the issues
1 parent 7a6570f commit fe5e135

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

bugzilla/base.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -584,8 +584,8 @@ def logout(self):
584584
#############################################
585585

586586
def _getbugfields(self):
587-
'''IMPLEMENT ME: Get bugfields from Bugzilla.'''
588-
raise NotImplementedError
587+
raise RuntimeError("This bugzilla version does not support listing "
588+
"bug fields.")
589589

590590
def getbugfields(self, force_refresh=False):
591591
'''
@@ -1646,7 +1646,8 @@ def adduser(self, user, name):
16461646
self.createuser(user, name)
16471647

16481648
def getqueryinfo(self, force_refresh=False):
1649-
raise NotImplementedError("getqueryinfo is deprecated and the "
1650-
"information is not provided by any modern bugzilla.")
1649+
ignore = force_refresh
1650+
raise RuntimeError("getqueryinfo is deprecated and the "
1651+
"information is not provided by any modern bugzilla.")
16511652
querydata = property(getqueryinfo)
16521653
querydefaults = property(getqueryinfo)

setup.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,6 @@ def _run(self):
146146

147147
# Would be nice to disable these 2 but it just
148148
# ain't work reorganizing the code to not trigger them
149-
# W0223: Abstract method not overwritten in
150-
"--disable W0223 "
151149
# W0212: Access to a protected member of a client class
152150
"--disable W0212 "
153151

0 commit comments

Comments
 (0)