10000 Remove *_as_Users from git objects · Sriharivignesh/github3.py@c29b8dc · GitHub
[go: up one dir, main page]

Skip to content

Commit c29b8dc

Browse files
sigmavirus24Sriharivignesh
authored andcommitted
Remove *_as_Users from git objects
1 parent 29938d1 commit c29b8dc

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

github3/git.py

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from json import dumps
1313
from base64 import b64decode
1414
from .models import GitHubCore, BaseCommit
15-
from .users import User
1615
from .decorators import requires_auth
1716

1817

@@ -92,22 +91,6 @@ def _update_attributes(self, commit):
9291
def _repr(self):
9392
return '<Commit [{0}:{1}]>'.format(self._author_name, self.sha)
9493

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-
11194

11295
class Reference(GitHubCore):
11396

@@ -195,14 +178,6 @@ def _update_attributes(self, tag):
195178
def _repr(self):
196179
return '<Tag [{0}]>'.format(self.tag)
197180

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-
206181

207182
class Tree(GitData):
208183

0 commit comments

Comments
 (0)
0