#NEWLINE# def __repr__( self ) : #NEWLINE# #INDENT# if ( len ( self . _items ) > 1 ) : #NEWLINE# #INDENT# root = _DendrogramNode ( self . _merge , * self . _items ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# root = root . _items [ 0 ] #NEWLINE# #UNINDENT# leaves = root . leaves ( False ) #NEWLINE# return ( '<Dendrogram with %d leaves>' % len ( leaves ) )