Skip to content

Commit 0559014

Browse files
committed
Move Team to orgs
1 parent c7c0310 commit 0559014

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

pygithub3/requests/repos/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# -*- encoding: utf-8 -*-
22

33
from pygithub3.requests.base import Request, ValidationError
4+
from pygithub3.resources.orgs import Team
5+
from pygithub3.resources.repos import Repo, Tag, Branch
46
from pygithub3.resources.users import User
5-
from pygithub3.resources.repos import Repo, Team, Tag, Branch
67

78
class List(Request):
89

pygithub3/resources/orgs.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,9 @@ class Org(Resource):
1212

1313
def __str__(self):
1414
return '<Org (%s)>' % getattr(self, 'login', '')
15+
16+
17+
class Team(Resource):
18+
19+
def __str__(self):
20+
return '<Team (%s)>' % getattr(self, 'name', '')

pygithub3/resources/repos.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@ def __str__(self):
1818
return '<Repo (%s)>' % getattr(self, 'name', '')
1919

2020

21-
class Team(Resource):
22-
23-
def __str__(self):
24-
return '<Team (%s)>' % getattr(self, 'name', '')
25-
26-
2721
class Author(Resource):
2822

2923
_dates = ('date')
@@ -115,6 +109,7 @@ def ball_to_upload(self):
115109
'Policy': self.policy, 'Signature': self.signature,
116110
'Content-Type': self.mime_type})
117111

112+
118113
class Hook(Resource):
119114

120115
_dates = ('created_at', 'pushed_at')

0 commit comments

Comments
 (0)