Skip to content

Commit 183710a

Browse files
author
Kenneth Reitz
committed
I guess api tokens are deprecated now :(
1 parent 9884944 commit 183710a

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

github3/core.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,21 @@ def enable_auth(*args, **kwargs):
4141

4242

4343

44-
def git_config():
45-
"""Returns an authenticated Github object, via HTTP Basic.
44+
# def git_config():
45+
# """Returns an authenticated Github object, via HTTP Basic.
4646

47-
GitHub API token is taken from `git config`.
48-
"""
47+
# GitHub API token is taken from `git config`.
48+
# """
4949

50-
username = envoy.run('git config github.user').std_out.strip()
51-
token = envoy.run('git config github.token').std_out.strip()
50+
# username = envoy.run('git config github.user').std_out.strip()
51+
# token = envoy.run('git config github.token').std_out.strip()
5252

53-
def enable_auth(*args, **kwargs):
54-
kwargs['auth'] = (username, token)
55-
return args, kwargs
53+
# def enable_auth(*args, **kwargs):
54+
# kwargs['auth'] = (username, token)
55+
# return args, kwargs
5656

57-
gh = Github()
58-
gh.is_authenticated = True
59-
gh._requests_pre_hook = enable_auth
57+
# gh = Github()
58+
# gh.is_authenticated = True
59+
# gh._requests_pre_hook = enable_auth
6060

61-
return gh
61+
# return gh

0 commit comments

Comments
 (0)