def peek_text(self, text: str) -> bool:
start = self._stream.index<EOL>stop = start + len(text)<EOL>if stop > self._stream.eos_index:<EOL><INDENT>return False<EOL><DEDENT>return self._stream[self._stream.index:stop] == text<EOL>
Same as readText but doesn't consume the stream.