diff options
Diffstat (limited to 'github3/core.py')
-rw-r--r-- | github3/core.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/github3/core.py b/github3/core.py index 5968ace..6221f9e 100644 --- a/github3/core.py +++ b/github3/core.py @@ -29,13 +29,9 @@ def no_auth(): def basic_auth(username, password): """Returns an authenticated Github object, via HTTP Basic.""" - def enable_auth(*args, **kwargs): - kwargs['auth'] = (username, password) - return args, kwargs - gh = Github() gh.is_authenticated = True - gh._requests_pre_hook = enable_auth + gh.session.auth = (username, password) return gh |