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):
|
def __init__(self, apiurl=API_URL):
|
||||||
self.__basic_auth = None
|
self.__basic_auth = None
|
||||||
|
|
||||||
|
|
||||||
def _get(self, *path):
|
def _get(self, *path):
|
||||||
headers = {'Accept': self.accept}
|
headers = {'Accept': self.accept}
|
||||||
|
|
||||||
@@ -38,14 +39,18 @@ class GitHub(object):
|
|||||||
|
|
||||||
return r
|
return r
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def auth(self, username, password):
|
def auth(self, username, password):
|
||||||
self.__basic_auth = (username, password)
|
self.__basic_auth = (username, password)
|
||||||
return self.logged_in
|
return self.logged_in
|
||||||
|
|
||||||
|
|
||||||
def oauth(self):
|
def oauth(self):
|
||||||
# TODO: oAuth
|
# TODO: oAuth
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def logged_in(self):
|
def logged_in(self):
|
||||||
r = self._get('')
|
r = self._get('')
|
||||||
|
|||||||
Reference in New Issue
Block a user