Retrieve scopes for current oauth token from response headers (Issue #134)

This commit is contained in:
Vincent Jacques
2013-02-06 00:04:29 +01:00
parent 681128d41a
commit 2215010b0e
6 changed files with 22 additions and 0 deletions
+4
View File
@@ -48,6 +48,10 @@ class Github(object):
def rate_limiting(self):
return self.__requester.rate_limiting
@property
def oauth_scopes(self):
return self.__requester.oauth_scopes
def get_user(self, login=github.GithubObject.NotSet):
assert login is github.GithubObject.NotSet or isinstance(login, (str, unicode)), login
if login is github.GithubObject.NotSet: