#NEWLINE# def _add_subclass_info( inner , obj , base ) : #NEWLINE# #INDENT# if isinstance ( base , tuple ) : #NEWLINE# #INDENT# for base in base : #NEWLINE# #INDENT# if ( type ( obj ) is base ) : #NEWLINE# #INDENT# return inner #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( type ( obj ) is inner ) : #NEWLINE# #INDENT# return inner #NEWLINE# #UNINDENT# #UNINDENT# module = '' #NEWLINE# if ( obj . __class__ . __module__ not in ( '__builtin__' , 'exceptions' ) ) : #NEWLINE# #INDENT# module = ( '<span class="module">%s.</span>' % obj . __class__ . __module__ ) #NEWLINE# #UNINDENT# return ( '%s%s(%s)' % ( module , obj . __class__ . __name__ , inner ) )