#NEWLINE# def repr1( self , x , level ) : #NEWLINE# #INDENT# typename = type ( x ) . __name__ #NEWLINE# if ( ' ' in typename ) : #NEWLINE# #INDENT# parts = typename . split ( ) #NEWLINE# typename = '_' . join ( parts ) #NEWLINE# #UNINDENT# if hasattr ( self , ( 'repr_' + typename ) ) : #NEWLINE# #INDENT# return getattr ( self , ( 'repr_' + typename ) ) ( x , level ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . repr_instance ( x , level )