From 2e743c77847b619b0fe85344c179e06f85bbbec5 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 24 Jul 2011 17:48:08 -0400 Subject: no reason to be not-authed --- github3/api.py | 4 ++-- github3/models.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'github3') diff --git a/github3/api.py b/github3/api.py index 0a6915c..3c2e861 100644 --- a/github3/api.py +++ b/github3/api.py @@ -140,7 +140,7 @@ class Github(GithubCore): def get_user(self, username): """Get a single user.""" - return self._get_resource(('users', username), User, authed=False) + return self._get_resource(('users', username), User) def get_me(self): @@ -153,7 +153,7 @@ class Github(GithubCore): def get_repo(self, username, reponame): """Get the authenticated user.""" - return self._get_resource(('repos', username, reponame), Repo, authed=False) + return self._get_resource(('repos', username, reponame), Repo) diff --git a/github3/models.py b/github3/models.py index 224710f..fe9e6aa 100644 --- a/github3/models.py +++ b/github3/models.py @@ -92,7 +92,7 @@ class User(BaseResource): def repos(self): # 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 -- cgit v1.2.3-59-g8ed1b