#NEWLINE# def __repr__( self ) : #NEWLINE# #INDENT# tid = self . _fields [ 'id' ] . value #NEWLINE# name = self . _get_name_string ( ) #NEWLINE# if isinstance ( name , str ) : #NEWLINE# #INDENT# return ( '<Torrent %d "%s">' % ( tid , name ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( '<Torrent %d>' % tid )