Skip to content

Commit 6ae76f9

Browse files
author
Connor McCoy
committed
Add missing 'self'
1 parent 83f93b7 commit 6ae76f9

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

github3/api.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,8 @@ def _generate_url(endpoint):
5555
return (settings.base_url + resource)
5656

5757

58-
def _requests_pre_hook(*args, **kwargs):
58+
def _requests_pre_hook(self, *args, **kwargs):
5959
"""Pre-processing for HTTP requests arguments."""
60-
6160
return args, kwargs
6261

6362

@@ -76,7 +75,6 @@ def _http_resource(self, verb, endpoint, params=None, authed=True):
7675

7776
if authed:
7877
args, kwargs = self._requests_pre_hook(verb, url, params=params)
79-
args = args[1:]
8078
else:
8179
args = (verb, url)
8280
kwargs = {'params': params}

0 commit comments

Comments
 (0)