def goto_next_frame(self):
marked = False<EOL>while True:<EOL><INDENT>line = next(self._f)[:-<NUM_LIT:1>]<EOL>if marked and len(line) > <NUM_LIT:0> and not line.startswith("<STR_LIT>"):<EOL><INDENT>try:<EOL><INDENT>step = int(line[:<NUM_LIT:10>])<EOL>return step, line<EOL><DEDENT>except ValueError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>marked = (len(line) == <NUM_LIT> and line == self._marker)<EOL><DEDENT>
Continue reading until the next frame is reached