diff options
Diffstat (limited to 'pygithub3')
-rw-r--r-- | pygithub3/requests/repos/__init__.py | 3 | ||||
-rw-r--r-- | pygithub3/resources/orgs.py | 6 | ||||
-rw-r--r-- | pygithub3/resources/repos.py | 7 |
3 files changed, 9 insertions, 7 deletions
diff --git a/pygithub3/requests/repos/__init__.py b/pygithub3/requests/repos/__init__.py index cd920fe..7bbcf3e 100644 --- a/pygithub3/requests/repos/__init__.py +++ b/pygithub3/requests/repos/__init__.py @@ -1,8 +1,9 @@ # -*- encoding: utf-8 -*- from pygithub3.requests.base import Request, ValidationError +from pygithub3.resources.orgs import Team +from pygithub3.resources.repos import Repo, Tag, Branch from pygithub3.resources.users import User -from pygithub3.resources.repos import Repo, Team, Tag, Branch class List(Request): diff --git a/pygithub3/resources/orgs.py b/pygithub3/resources/orgs.py index be6769a..a79395d 100644 --- a/pygithub3/resources/orgs.py +++ b/pygithub3/resources/orgs.py @@ -12,3 +12,9 @@ class Org(Resource): def __str__(self): return '<Org (%s)>' % getattr(self, 'login', '') + + +class Team(Resource): + + def __str__(self): + return '<Team (%s)>' % getattr(self, 'name', '') diff --git a/pygithub3/resources/repos.py b/pygithub3/resources/repos.py index c7ec5e8..f50d694 100644 --- a/pygithub3/resources/repos.py +++ b/pygithub3/resources/repos.py @@ -18,12 +18,6 @@ class Repo(Resource): return '<Repo (%s)>' % getattr(self, 'name', '') -class Team(Resource): - - def __str__(self): - return '<Team (%s)>' % getattr(self, 'name', '') - - class Author(Resource): _dates = ('date') @@ -115,6 +109,7 @@ class Download(Resource): 'Policy': self.policy, 'Signature': self.signature, 'Content-Type': self.mime_type}) + class Hook(Resource): _dates = ('created_at', 'pushed_at') |