pgn_read/core/game.py
def append_token_and_set_error(self, match):
        """Append first invalid token in main line or variation to game score.

        The game error state is adjusted so the error condition can be removed
        at the end of the variation in which it occured."""
        if self._state is None:
            self._state = len(self._text)
            self._state_stack[-1] = self._state
            self._error_list.append(self._state)
            self.pgn_error_notification()
            # Activate to stop at first error; beware this catches end of
            # buffer errors too, so be sure the error to be seen is in first
            # buffer.  The method raises an AssertionError.
            #self.display_placement_and_board_and_fen_then_assert_false(match)
        self._text.append(PGN_TOKEN_SEPARATOR + match.group())

        # len(self._position_deltas) will be 0 if end of buffer reached while
        # collecting PGN Tags.
        try:
            self.repeat_board_state(self._position_deltas[-1])
        except IndexError:
            if len(self._position_deltas):
                raise
Append first invalid token in main line or variation to game score.

        The game error state is adjusted so the error condition can be removed
        at the end of the variation in which it occured.
Append first invalid token in main line or variation to game score.
The game error state is adjusted so the error condition can be removed
at the end of the variation in which it occured.
Append first invalid token in main line or variation to game score . The game error state is adjusted so the error condition can be removed at the end of the variation in which it occured .
def append_token_and_set_error(self, match):
        if self._state is None:
            self._state = len(self._text)
            self._state_stack[-1] = self._state
            self._error_list.append(self._state)
            self.pgn_error_notification()
        self._text.append(PGN_TOKEN_SEPARATOR + match.group())
        try:
            self.repeat_board_state(self._position_deltas[-1])
        except IndexError:
            if len(self._position_deltas):
                raise
def append_token_and_set_error ( self , match ) : if self . _state is None : self . _state = len ( self . _text ) self . _state_stack [ - 1 ] = self . _state self . _error_list . append ( self . _state ) self . pgn_error_notification ( ) self . _text . append ( PGN_TOKEN_SEPARATOR + match . group ( ) ) try : self . repeat_board_state ( self . _position_deltas [ - 1 ] ) except IndexError : if len ( self . _position_deltas ) : raise
Append first invalid token in main line or variation to game score.
Append first invalid token in main line or variation to game score .
"""Append first invalid token in main line or variation to game score.

        The game error state is adjusted so the error condition can be removed
        at the end of the variation in which it occured.""" # Activate to stop at first error; beware this catches end of # buffer errors too, so be sure the error to be seen is in first # buffer.  The method raises an AssertionError. #self.display_placement_and_board_and_fen_then_assert_false(match) # len(self._position_deltas) will be 0 if end of buffer reached while # collecting PGN Tags.
self
match