#NEWLINE# def filterUniques( self , seq ) : #NEWLINE# #INDENT# seen = set ( ) #NEWLINE# seen_add = seen . add #NEWLINE# seq = [ ( x [ 0 ] , re . sub ( '\\s+' , ' ' , x [ 1 ] ) . strip ( ) ) for x in seq ] #NEWLINE# return [ x for x in seq if ( not ( ( x [ 1 ] in seen ) or seen_add ( x [ 1 ] ) ) ) ]