def _update_offset_file(self):
if self.on_update:<EOL><INDENT>self.on_update()<EOL><DEDENT>offset = self._filehandle().tell()<EOL>inode = stat(self.filename).st_ino<EOL>fh = open(self._offset_file, "<STR_LIT:w>")<EOL>fh.write("<STR_LIT>" % (inode, offset))<EOL>fh.close()<EOL>self._since_update = <NUM_LIT:0><EOL>
Update the offset file with the current inode and offset.