diff options
author | 2011-11-06 03:43:04 +0100 | |
---|---|---|
committer | 2011-11-06 03:43:04 +0100 | |
commit | 79b46e920e1f7462ffad6100dad5ed3fa6d9009a (patch) | |
tree | 57de0310caf06b09b0fa21faf529aaa0d7ee8a45 /github3/core.py | |
parent | Doc and refactorize (diff) | |
download | python-github3-79b46e920e1f7462ffad6100dad5ed3fa6d9009a.tar.xz python-github3-79b46e920e1f7462ffad6100dad5ed3fa6d9009a.zip |
Cleaning files from origin repo
Diffstat (limited to 'github3/core.py')
-rw-r--r-- | github3/core.py | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/github3/core.py b/github3/core.py index 6221f9e..d6eed22 100644 --- a/github3/core.py +++ b/github3/core.py @@ -11,12 +11,7 @@ __version__ = '0.0.0' __license__ = 'MIT' __author__ = 'Kenneth Reitz' - -import envoy - -from .api import Github, settings - - +from .api import Github def no_auth(): """Returns an un-authenticated Github object.""" @@ -25,7 +20,6 @@ def no_auth(): return gh - def basic_auth(username, password): """Returns an authenticated Github object, via HTTP Basic.""" @@ -34,24 +28,3 @@ def basic_auth(username, password): gh.session.auth = (username, password) return gh - - - -# def git_config(): -# """Returns an authenticated Github object, via HTTP Basic. - -# 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() - -# def enable_auth(*args, **kwargs): -# kwargs['auth'] = (username, token) -# return args, kwargs - -# gh = Github() -# gh.is_authenticated = True -# gh._requests_pre_hook = enable_auth - -# return gh
\ No newline at end of file |