@@ -71,11 +71,9 @@ def __repr__(self):
7171 return '<Bugzilla Token Cache :: %s>' % self .value
7272
7373
74- class _BugzillaServerProxy (ServerProxy ):
74+ class _BugzillaServerProxy (ServerProxy , object ):
7575 def __init__ (self , uri , tokenfile , * args , ** kwargs ):
76- # pylint: disable=super-init-not-called
77- # No idea why pylint complains here, must be a bug
78- ServerProxy .__init__ (self , uri , * args , ** kwargs )
76+ super (_BugzillaServerProxy , self ).__init__ (uri , * args , ** kwargs )
7977 self .token_cache = _BugzillaTokenCache (uri , tokenfile )
8078 self .api_key = None
8179
@@ -85,7 +83,7 @@ def use_api_key(self, api_key):
8583 def clear_token (self ):
8684 self .token_cache .value = None
8785
88- def _ServerProxy__request (self , methodname , params ):
86+ def __request (self , methodname , params ):
8987 if len (params ) == 0 :
9088 params = ({}, )
9189
@@ -96,9 +94,7 @@ def _ServerProxy__request(self, methodname, params):
9694 if 'Bugzilla_token' not in params [0 ]:
9795 params [0 ]['Bugzilla_token' ] = self .token_cache .value
9896
99- # pylint: disable=maybe-no-member
100- ret = ServerProxy ._ServerProxy__request (self , methodname , params )
101- # pylint: enable=maybe-no-member
97+ ret = super (_BugzillaServerProxy , self ).__request (methodname , params )
10298
10399 if isinstance (ret , dict ) and 'token' in ret .keys ():
104100 self .token_cache .value = ret .get ('token' )
0 commit comments