#NEWLINE# def avatar_img( avatar , size ) : #NEWLINE# #INDENT# if ( not avatar . thumbnail_exists ( size ) ) : #NEWLINE# #INDENT# avatar . create_thumbnail ( size ) #NEWLINE# #UNINDENT# return mark_safe ( ( '<img src="%s" alt="%s" width="%s" height="%s" />' % ( avatar . avatar_url ( size ) , six . text_type ( avatar ) , size , size ) ) )