aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/resources
diff options
context:
space:
mode:
Diffstat (limited to 'pygithub3/resources')
-rw-r--r--pygithub3/resources/orgs.py6
-rw-r--r--pygithub3/resources/repos.py7
2 files changed, 7 insertions, 6 deletions
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')