From 183710ac66357037d16930b6de7f00d0738ec316 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 18 Oct 2011 22:28:07 -0400 Subject: I guess api tokens are deprecated now :( --- github3/core.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'github3') diff --git a/github3/core.py b/github3/core.py index 0a338c7..5968ace 100644 --- a/github3/core.py +++ b/github3/core.py @@ -41,21 +41,21 @@ def basic_auth(username, password): -def git_config(): - """Returns an authenticated Github object, via HTTP Basic. +# def git_config(): +# """Returns an authenticated Github object, via HTTP Basic. - GitHub API token is taken from `git config`. - """ +# GitHub API token is taken from `git config`. +# """ - username = envoy.run('git config github.user').std_out.strip() - token = envoy.run('git config github.token').std_out.strip() +# username = envoy.run('git config github.user').std_out.strip() +# token = envoy.run('git config github.token').std_out.strip() - def enable_auth(*args, **kwargs): - kwargs['auth'] = (username, token) - return args, kwargs +# def enable_auth(*args, **kwargs): +# kwargs['auth'] = (username, token) +# return args, kwargs - gh = Github() - gh.is_authenticated = True - gh._requests_pre_hook = enable_auth +# gh = Github() +# gh.is_authenticated = True +# gh._requests_pre_hook = enable_auth - return gh \ No newline at end of file +# return gh \ No newline at end of file -- cgit v1.3-8-gc7d7