mirror of
https://github.com/kennethreitz/python-github3.git
synced 2026-06-05 23:10:17 +00:00
no reason to be not-authed
This commit is contained in:
+2
-2
@@ -140,7 +140,7 @@ class Github(GithubCore):
|
|||||||
|
|
||||||
def get_user(self, username):
|
def get_user(self, username):
|
||||||
"""Get a single user."""
|
"""Get a single user."""
|
||||||
return self._get_resource(('users', username), User, authed=False)
|
return self._get_resource(('users', username), User)
|
||||||
|
|
||||||
|
|
||||||
def get_me(self):
|
def get_me(self):
|
||||||
@@ -153,7 +153,7 @@ class Github(GithubCore):
|
|||||||
|
|
||||||
def get_repo(self, username, reponame):
|
def get_repo(self, username, reponame):
|
||||||
"""Get the authenticated user."""
|
"""Get the authenticated user."""
|
||||||
return self._get_resource(('repos', username, reponame), Repo, authed=False)
|
return self._get_resource(('repos', username, reponame), Repo)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -92,7 +92,7 @@ class User(BaseResource):
|
|||||||
|
|
||||||
def repos(self):
|
def repos(self):
|
||||||
# return self._gh.get_repos(username=self.login)
|
# return self._gh.get_repos(username=self.login)
|
||||||
repos = self._gh._get_resources(('users', self.login, 'repos'), Repo, authed=False)
|
repos = self._gh._get_resources(('users', self.login, 'repos'), Repo)
|
||||||
return repos
|
return repos
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user