8000 Begin work on issues module · staticdev/github4.py@0525588 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on May 22, 2021. It is now read-only.

Commit 0525588

Browse files
committed
Begin work on issues module
1 parent 05ced99 commit 0525588

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

github3/issues/comment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class IssueComment(BaseComment):
2121
2222
See also: http://developer.github.com/v3/issues/comments/
2323
"""
24-
def __init__(self, comment, session=None):
25-
super(IssueComment, self).__init__(comment, session)
24+
def _update_attributes(self, comment):
25+
super(IssueComment, self)._update_attributes(comment)
2626

2727
user = comment.get('user')
2828
#: :class:`User <github3.users.User>` who made the comment

github3/issues/event.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ class IssueEvent(GitHubCore):
2222
e1.commit_id != e2.commit_id
2323
2424
"""
25-
def __init__(self, event, session=None):
26-
super(IssueEvent, self).__init__(event, session)
25+
def _update_attributes(self, event):
2726
# The type of event:
2827
# ('closed', 'reopened', 'subscribed', 'merged', 'referenced',
2928
# 'mentioned', 'assigned')
@@ -60,7 +59,7 @@ def __init__(self, event, session=None):
6059

6160
self._uniq = self.commit_id
6261

63-
def __repr__(self):
62+
def _repr(self):
6463
return '<Issue Event [{0} by {1}]>'.format(
6564
self.event, self.actor
6665
)

0 commit comments

Comments
 (0)
0