<s> from __future__ import unicode_literals <EOL> from . . utils import timestamp_parameter <EOL> from . . models import BaseComment <EOL> from . . users import User <EOL> class IssueComment ( BaseComment ) : <EOL> """<STR_LIT>""" <EOL> def _update_attributes ( self , comment ) : <EOL> super ( IssueComment , self ) . _update_attributes ( comment ) <EOL> user = comment . get ( '<STR_LIT:user>' ) <EOL> self . user = User ( user , self ) if user else None <EOL> self . issue_url = comment . get ( '<STR_LIT>' ) <EOL> self . html_url = comment . get ( '<STR_LIT>' ) <EOL> def _repr ( self ) : <EOL> return '<STR_LIT>' . format ( self . user . login ) <EOL> def issue_comment_params ( sort , direction , since ) : <EOL> params = { } <EOL> if sort in ( '<STR_LIT>' , '<STR_LIT>' ) : <EOL> params [ '<STR_LIT>' ] = sort <EOL> if direction in ( '<STR_LIT>' , '<STR_LIT>' ) : <EOL> params [ '<STR_LIT>' ] = direction <EOL> since = timestamp_parameter ( since ) <EOL> if since : <EOL> params [ '<STR_LIT>' ] = since <EOL> return params </s>
