aboutsummaryrefslogtreecommitdiffstats
path: root/github3/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'github3/core.py')
-rw-r--r--github3/core.py29
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