pgn_read/core/game.py
def append_castles(self, match):
        """Translate FIDE style castling to PGN and delegate to superclass.

        FIDE style castling uses zero, 0, rather than capital-o, 'O'.

        """
        group = match.group
        if len(group(IFG_CASTLES)) == 3:
            castles = PGN_O_O + group()[3:]
        else:
            castles = PGN_O_O_O + group()[5:]
        pgn_match = text_format.match(castles)
        if pgn_match is None:
            self.append_token_and_set_error(match)
            return
        super().append_castles(pgn_match)
Translate FIDE style castling to PGN and delegate to superclass.

        FIDE style castling uses zero, 0, rather than capital-o, 'O'.

        
Translate FIDE style castling to PGN and delegate to superclass.
FIDE style castling uses zero, 0, rather than capital-o, 'O'.
Translate FIDE style castling to PGN and delegate to superclass . FIDE style castling uses zero 0 rather than capital - o ' O ' .
def append_castles(self, match):
        group = match.group
        if len(group(IFG_CASTLES)) == 3:
            castles = PGN_O_O + group()[3:]
        else:
            castles = PGN_O_O_O + group()[5:]
        pgn_match = text_format.match(castles)
        if pgn_match is None:
            self.append_token_and_set_error(match)
            return
        super().append_castles(pgn_match)
def append_castles ( self , match ) : group = match . group if len ( group ( IFG_CASTLES ) ) == 3 : castles = PGN_O_O + group ( ) [ 3 : ] else : castles = PGN_O_O_O + group ( ) [ 5 : ] pgn_match = text_format . match ( castles ) if pgn_match is None : self . append_token_and_set_error ( match ) return super ( ) . append_castles ( pgn_match )
Translate FIDE style castling to PGN and delegate to superclass.
Translate FIDE style castling to PGN and delegate to superclass .
"""Translate FIDE style castling to PGN and delegate to superclass.

        FIDE style castling uses zero, 0, rather than capital-o, 'O'.

        """
self
match