#NEWLINE# def __cmp__( self , other ) : #NEWLINE# #INDENT# if ( other is None ) : #NEWLINE# #INDENT# return 1 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return cmp ( ( self . level , self . single ) , ( other . level , other . single ) )