useful-scripts/pyutil/pygtail.py
def _filehandle(self):
        """
        Return a filehandle to the file being tailed, with the position set
        to the current offset.
        """
        if not self._fh or self._is_closed():
            filename = self._rotated_logfile or self.filename
            if filename.endswith('.gz'):
                self._fh = gzip.open(filename, 'r')
            else:
                self._fh = open(filename, "r", 1)
            if self.read_from_end and not exists(self._offset_file):
                self._fh.seek(0, os.SEEK_END)
            else:
                self._fh.seek(self._offset)

        return self._fh

        Return a filehandle to the file being tailed, with the position set
        to the current offset.
        
Return a filehandle to the file being tailed, with the position set
to the current offset.
Return a filehandle to the file being tailed with the position set to the current offset .
def _filehandle(self):
        if not self._fh or self._is_closed():
            filename = self._rotated_logfile or self.filename
            if filename.endswith('.gz'):
                self._fh = gzip.open(filename, 'r')
            else:
                self._fh = open(filename, "r", 1)
            if self.read_from_end and not exists(self._offset_file):
                self._fh.seek(0, os.SEEK_END)
            else:
                self._fh.seek(self._offset)
        return self._fh
def _filehandle ( self ) : if not self . _fh or self . _is_closed ( ) : filename = self . _rotated_logfile or self . filename if filename . endswith ( '.gz' ) : self . _fh = gzip . open ( filename , 'r' ) else : self . _fh = open ( filename , "r" , 1 ) if self . read_from_end and not exists ( self . _offset_file ) : self . _fh . seek ( 0 , os . SEEK_END ) else : self . _fh . seek ( self . _offset ) return self . _fh
Return a filehandle to the file being tailed, with the position set
to the current offset.
Return a filehandle to the file being tailed with the position set to the current offset .
"""
        Return a filehandle to the file being tailed, with the position set
        to the current offset.
        """
self