From: Hugh Brown Date: Thu, 10 Oct 2013 22:37:04 +0000 (-0400) Subject: Remove unneeded argument in internal method X-Git-Tag: v0.2.23~92^2~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dc59eb7436bd51421faf6ee29df6aff57548f1d4;p=tools%2Fpython-jenkinsapi.git Remove unneeded argument in internal method --- diff --git a/jenkinsapi/utils/requester.py b/jenkinsapi/utils/requester.py index 3091204..ea05c65 100644 --- a/jenkinsapi/utils/requester.py +++ b/jenkinsapi/utils/requester.py @@ -38,7 +38,7 @@ class Requester(object): self.password = password self.ssl_verify = ssl_verify - def get_request_dict(self, url, params, data, headers): + def get_request_dict(self, params, data, headers): requestKwargs = {} if self.username: requestKwargs['auth'] = (self.username, self.password) @@ -62,11 +62,11 @@ class Requester(object): return requestKwargs def get_url(self, url, params=None, headers=None): - requestKwargs = self.get_request_dict(url, params, None, headers) + requestKwargs = self.get_request_dict(params, None, headers) return requests.get(url, **requestKwargs) def post_url(self, url, params=None, data=None, headers=None): - requestKwargs = self.get_request_dict(url, params, data, headers) + requestKwargs = self.get_request_dict(params, data, headers) return requests.post(url, **requestKwargs) def post_xml_and_confirm_status(self, url, params=None, data=None, valid=None):