#NEWLINE# def serialize_comments( self , comments ) : #NEWLINE# #INDENT# result = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# serialized_comments = super ( ImageReviewUI , self ) . serialize_comments ( comments ) #NEWLINE# for serialized_comment in serialized_comments : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# position = ( '%(x)sx%(y)s+%(width)s+%(height)s' % self ) #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# result . setdefault ( position , [ ] ) . append ( serialized_comment ) #NEWLINE# #UNINDENT# return result