<s> from __future__ import unicode_literals <EOL> from . . messages import GistComment <EOL> from . . requests import GistCommentResponse <EOL> from . . requests import GistCommentListResponse <EOL> class GistsComments : <EOL> def __init__ ( self , client ) : <EOL> self . client = client <EOL> def list ( self , id ) : <EOL> return self . client . get ( <EOL> '<STR_LIT>' % id , msg_type = GistCommentListResponse ) <EOL> def get ( self , id ) : <EOL> return self . client . get ( <EOL> '<STR_LIT>' % id , msg_type = GistCommentResponse ) <EOL> def create ( self , id , body ) : <EOL> msg = { <EOL> '<STR_LIT:body>' : body <EOL> } <EOL> return self . client . post ( <EOL> '<STR_LIT>' % id , data = msg , msg_type = GistCommentResponse ) <EOL> def edit ( self , id , body ) : <EOL> msg = { <EOL> '<STR_LIT:body>' : body <EOL> } <EOL> return self . client . patch ( <EOL> '<STR_LIT>' % id , data = msg , msg_type = GistCommentResponse ) <EOL> def delete ( self , id ) : <EOL> return self . client . delete ( <EOL> '<STR_LIT>' % id ) </s>
