(self, node, keyword)
return spaces + keyword
Gets the preceding spaces and code for a TokKeyword or TokSymbol.

        Args:
          node: The Node containing the keyword.
          keyword: The expected keyword or symbol.

        Returns:
          The text for the keyword or symbol.
Gets the preceding spaces and code for a TokKeyword or TokSymbol.
Gets the preceding spaces and code for a TokKeyword or TokSymbol .
def _get_text(self, node, keyword):
        """Gets the preceding spaces and code for a TokKeyword or TokSymbol.

        Args:
          node: The Node containing the keyword.
          keyword: The expected keyword or symbol.

        Returns:
          The text for the keyword or symbol.
        """
        if self._args.get('ignore_tokens'):
            return b' ' + keyword

        spaces = self._get_code_for_spaces(node)
        assert (self._tokens[self._pos].matches(lexer.TokKeyword(keyword)) or
                self._tokens[self._pos].matches(lexer.TokSymbol(keyword)))
        self._pos += 1
        return spaces + keyword
def _get_text ( self , node , keyword ) : if self . _args . get ( 'ignore_tokens' ) : return b' ' + keyword spaces = self . _get_code_for_spaces ( node ) assert ( self . _tokens [ self . _pos ] . matches ( lexer . TokKeyword ( keyword ) ) or self . _tokens [ self . _pos ] . matches ( lexer . TokSymbol ( keyword ) ) ) self . _pos += 1 return spaces + keyword