pgn_read/core/game.py
def append_end_rav_after_error(self, match):
        """Delegate action to append_token_after_error method and adjust error
        state for recovery at end of recursive annotation variation in which
        error occured.
        """
        if len(self._state_stack) > 1:
            if self._state_stack[-2] == self._state_stack[-1]:
                self.append_token_after_error(match)
                del self._state_stack[-1]
                self._state = self._state_stack[-1]
            else:

                # Cannot call append_end_rav() method because it tests some
                # conditions that should be true when errors are absent.
                if self._movetext_offset is None:
                    self.append_token_and_set_error(match)
                    return
                if len(self._ravstack) == 1:
                    self.append_token_and_set_error(match)
                    return
                del self._ravstack[-1]
                del self._state_stack[-1]
                self._state = self._state_stack[-1]
                if self._ravstack[-1][2] is None:
                    self.set_position_to_play_prior_right_nested_rav_at_move()
                else:
                    self.set_position_to_play_main_line_at_move()
                self.pgn_error_recovery()
                self._text.append(match.group())

        else:
            self.append_token_after_error(match)
Delegate action to append_token_after_error method and adjust error
        state for recovery at end of recursive annotation variation in which
        error occured.
        
Delegate action to append_token_after_error method and adjust error
state for recovery at end of recursive annotation variation in which
error occured.
Delegate action to append_token_after_error method and adjust error state for recovery at end of recursive annotation variation in which error occured .
def append_end_rav_after_error(self, match):
        if len(self._state_stack) > 1:
            if self._state_stack[-2] == self._state_stack[-1]:
                self.append_token_after_error(match)
                del self._state_stack[-1]
                self._state = self._state_stack[-1]
            else:
                if self._movetext_offset is None:
                    self.append_token_and_set_error(match)
                    return
                if len(self._ravstack) == 1:
                    self.append_token_and_set_error(match)
                    return
                del self._ravstack[-1]
                del self._state_stack[-1]
                self._state = self._state_stack[-1]
                if self._ravstack[-1][2] is None:
                    self.set_position_to_play_prior_right_nested_rav_at_move()
                else:
                    self.set_position_to_play_main_line_at_move()
                self.pgn_error_recovery()
                self._text.append(match.group())
        else:
            self.append_token_after_error(match)
def append_end_rav_after_error ( self , match ) : if len ( self . _state_stack ) > 1 : if self . _state_stack [ - 2 ] == self . _state_stack [ - 1 ] : self . append_token_after_error ( match ) del self . _state_stack [ - 1 ] self . _state = self . _state_stack [ - 1 ] else : if self . _movetext_offset is None : self . append_token_and_set_error ( match ) return if len ( self . _ravstack ) == 1 : self . append_token_and_set_error ( match ) return del self . _ravstack [ - 1 ] del self . _state_stack [ - 1 ] self . _state = self . _state_stack [ - 1 ] if self . _ravstack [ - 1 ] [ 2 ] is None : self . set_position_to_play_prior_right_nested_rav_at_move ( ) else : self . set_position_to_play_main_line_at_move ( ) self . pgn_error_recovery ( ) self . _text . append ( match . group ( ) ) else : self . append_token_after_error ( match )
Delegate action to append_token_after_error method and adjust error
state for recovery at end of recursive annotation variation in which
error occured.
Delegate action to append_token_after_error method and adjust error state for recovery at end of recursive annotation variation in which error occured .
"""Delegate action to append_token_after_error method and adjust error
        state for recovery at end of recursive annotation variation in which
        error occured.
        """ # Cannot call append_end_rav() method because it tests some # conditions that should be true when errors are absent.
self
match