(self, args)
RESUME: resume program flow after error-trap.
RESUME: resume program flow after error-trap.
RESUME : resume program flow after error - trap .
def resume_(self, args):
        """RESUME: resume program flow after error-trap."""
        if self.error_resume is None:
            # unset error handler
            self.on_error = 0
            raise error.BASICError(error.RESUME_WITHOUT_ERROR)
        # parse arguments
        where, = args
        start_statement, runmode = self.error_resume
        self.error_num = 0
        self.error_handle_mode = False
        self.error_resume = None
        self._basic_events.suspend_all = False
        if not where:
            # RESUME or RESUME 0
            self.set_pointer(runmode, start_statement)
        elif where == tk.NEXT:
            # RESUME NEXT
            self.set_pointer(runmode, start_statement)
            self.get_codestream().skip_to(tk.END_STATEMENT, break_on_first_char=False)
        else:
            # RESUME n
            self.jump(where)
def resume_ ( self , args ) : if self . error_resume is None : # unset error handler self . on_error = 0 raise error . BASICError ( error . RESUME_WITHOUT_ERROR ) # parse arguments where , = args start_statement , runmode = self . error_resume self . error_num = 0 self . error_handle_mode = False self . error_resume = None self . _basic_events . suspend_all = False if not where : # RESUME or RESUME 0 self . set_pointer ( runmode , start_statement ) elif where == tk . NEXT : # RESUME NEXT self . set_pointer ( runmode , start_statement ) self . get_codestream ( ) . skip_to ( tk . END_STATEMENT , break_on_first_char = False ) else : # RESUME n self . jump ( where )