@@ -112,10 +112,8 @@ def __init__(self, pull, session=None):
112112 #: Number of deletions on this pull request
113113 self .deletions = pull .get ('deletions' )
114114
115- closed = pull .get ('closed_at' )
116- # If the pull request has been closed
117115 #: datetime object representing when the pull was closed
118- self .closed_at = self ._strptime (closed ) if closed else None
116+ self .closed_at = self ._strptime (pull . get ( 'closed_at' ))
119117 #: Number of comments
120118 self .comments = pull .get ('comments' )
121119 #: Comments url (not a template)
@@ -162,9 +160,7 @@ def __init__(self, pull, session=None):
162160 }
163161
164162 #: datetime object representing when the pull was merged
165- merged = pull .get ('merged_at' )
166- # If the pull request has been merged
167- self .merged_at = self ._strptime (merged ) if merged else None
163+ self .merged_at = self ._strptime (pull .get ('merged_at' ))
168164 #: Whether the pull is deemed mergeable by GitHub
169165 self .mergeable = pull .get ('mergeable' , False )
170166 #: Whether it would be a clean merge or not
@@ -198,12 +194,12 @@ def __init__(self, pull, session=None):
198194 #: datetime object representing the last time the object was changed
199195 self .updated_at = self ._strptime (pull .get ('updated_at' ))
200196 #: :class:`User <github3.users.User>` object representing the creator
201- # of the pull request
197+ #: of the pull request
202198 self .user = pull .get ('user' )
203199 if self .user :
204200 self .user = User (self .user , self )
205201 #: :class:`User <github3.users.User>` object representing the assignee
206- # of the pull request
202+ #: of the pull request
207203 self .assignee = pull .get ('assignee' )
208204 if self .assignee :
209205 self .assignee = User (self .assignee , self )
0 commit comments