#NEWLINE# def __lt__( self , other ) : #NEWLINE# #INDENT# if isinstance ( other , FileLocation ) : #NEWLINE# #INDENT# if ( self . filename < other . filename ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . filename > other . filename ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# assert ( self . filename == other . filename ) #NEWLINE# return self . _line_lessthan ( other . line ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( other , six . string_types ) : #NEWLINE# #INDENT# return ( self . filename < self ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise AttributeError ( ( 'Cannot compare FileLocation with %s:%s' % ( type ( other ) , other ) ) )