aboutsummaryrefslogtreecommitdiffstats
path: root/github3/core.py
diff options
context:
space:
mode:
authorKenneth Reitz <me@kennethreitz.com>2011-10-18 22:28:07 -0400
committerKenneth Reitz <me@kennethreitz.com>2011-10-18 22:28:07 -0400
commit183710ac66357037d16930b6de7f00d0738ec316 (patch)
treefb95d4a8db580fa846f8d518aaba47bc2b39913e /github3/core.py
parentreqs update (diff)
downloadpython-github3-183710ac66357037d16930b6de7f00d0738ec316.tar.xz
python-github3-183710ac66357037d16930b6de7f00d0738ec316.zip
I guess api tokens are deprecated now :(
Diffstat (limited to 'github3/core.py')
-rw-r--r--github3/core.py26
1 files changed, 13 insertions, 13 deletions
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