mirror of
https://github.com/kennethreitz/python-github3.git
synced 2026-06-05 23:10:17 +00:00
whitespace
This commit is contained in:
@@ -24,6 +24,7 @@ class GitHub(object):
|
||||
def __init__(self, apiurl=API_URL):
|
||||
self.__basic_auth = None
|
||||
|
||||
|
||||
def _get(self, *path):
|
||||
headers = {'Accept': self.accept}
|
||||
|
||||
@@ -38,14 +39,18 @@ class GitHub(object):
|
||||
|
||||
return r
|
||||
|
||||
|
||||
|
||||
def auth(self, username, password):
|
||||
self.__basic_auth = (username, password)
|
||||
return self.logged_in
|
||||
|
||||
|
||||
def oauth(self):
|
||||
# TODO: oAuth
|
||||
pass
|
||||
|
||||
|
||||
@property
|
||||
def logged_in(self):
|
||||
r = self._get('')
|
||||
|
||||
Reference in New Issue
Block a user