#NEWLINE# def insert( self , user_input ) : #NEWLINE# #INDENT# if ( ( not self . hist ) or ( ( user_input != self . last ( ) ) and ( user_input != 'last_regex' ) ) ) : #NEWLINE# #INDENT# self . hist . append ( user_input ) #NEWLINE# self . index = None