def seek(self, pos):
if self.debug:<EOL><INDENT>logging.debug('<STR_LIT>' % pos)<EOL><DEDENT>self.fp.seek(pos)<EOL>self.bufpos = pos<EOL>self.buf = b'<STR_LIT>'<EOL>self.charpos = <NUM_LIT:0><EOL>self._parse1 = self._parse_main<EOL>self._curtoken = b'<STR_LIT>'<EOL>self._curtokenpos = <NUM_LIT:0><EOL>self._tokens = []<EOL>return<EOL>
Seeks the parser to the given position.