#NEWLINE# def redo( self ) : #NEWLINE# #INDENT# '\n        Redo the previously-undone command\n\n        :raises: IndexError, if there are no undone actions\n        ' #NEWLINE# try : #NEWLINE# #INDENT# c = self . _undo_stack . pop ( ) #NEWLINE# logging . getLogger ( __name__ ) . debug ( 'Undo %s' , c ) #NEWLINE# #UNINDENT# except IndexError : #NEWLINE# #INDENT# raise IndexError ( 'No commands to redo' ) #NEWLINE# #UNINDENT# result = c . do ( self . _session ) #NEWLINE# self . _command_stack . append ( c ) #NEWLINE# self . notify ( 'redo' ) #NEWLINE# return result