def next(self):
try:<EOL><INDENT>line = self._get_next_line()<EOL><DEDENT>except StopIteration:<EOL><INDENT>if self._is_new_file():<EOL><INDENT>self._rotated_logfile = None<EOL>self._fh.close()<EOL>self._offset = <NUM_LIT:0><EOL>try:<EOL><INDENT>line = self._get_next_line()<EOL><DEDENT>except StopIteration:  <EOL><INDENT>self._update_offset_file()<EOL>raise<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self._update_offset_file()<EOL>raise<EOL><DEDENT><DEDENT>if self.paranoid:<EOL><INDENT>self._update_offset_file()<EOL><DEDENT>elif self.every_n and self.every_n <= self._since_update:<EOL><INDENT>self._update_offset_file()<EOL><DEDENT>return line<EOL>
Return the next line in the file, updating the offset.