|
12 | 12 | from json import dumps
|
13 | 13 | from base64 import b64decode
|
14 | 14 | from .models import GitHubCore, BaseCommit
|
15 |
| -from .users import User |
16 | 15 | from .decorators import requires_auth
|
17 | 16 |
|
18 | 17 |
|
@@ -92,22 +91,6 @@ def _update_attributes(self, commit):
|
92 | 91 | def _repr(self):
|
93 | 92 | return '<Commit [{0}:{1}]>'.format(self._author_name, self.sha)
|
94 | 93 |
|
95 |
| - def author_as_User(self): |
96 |
| - """Attempt to return the author attribute as a |
97 |
| - :class:`User <github3.users.User>`. No guarantees are made about the |
98 |
| - validity of this object, i.e., having a login or created_at object. |
99 |
| -
|
100 |
| - """ |
101 |
| - return User(self.author, self) |
102 |
| - |
103 |
| - def committer_as_User(self): |
104 |
| - """Attempt to return the committer attribute as a |
105 |
| - :class:`User <github3.users.User>` object. No guarantees are made |
106 |
| - about the validity of this object. |
107 |
| -
|
108 |
| - """ |
109 |
| - return User(self.committer, self) |
110 |
| - |
111 | 94 |
|
112 | 95 | class Reference(GitHubCore):
|
113 | 96 |
|
@@ -195,14 +178,6 @@ def _update_attributes(self, tag):
|
195 | 178 | def _repr(self):
|
196 | 179 | return '<Tag [{0}]>'.format(self.tag)
|
197 | 180 |
|
198 |
| - def tagger_as_User(self): |
199 |
| - """Attempt to return the tagger attribute as a |
200 |
| - :class:`User <github3.users.User>`. No guarantees are made about the |
201 |
| - validity of this object, i.e., having a login or created_at object. |
202 |
| -
|
203 |
| - """ |
204 |
| - return User(self.tagger, self) |
205 |
| - |
206 | 181 |
|
207 | 182 | class Tree(GitData):
|
208 | 183 |
|
|
0 commit comments