(self, file, interval)
Tails a file
Tails a file
Tails a file
def _tail_file(self, file, interval):
        """Tails a file"""
        file.seek(0,2)
        while True:
            where = file.tell()
            line = file.readline()
            if not line:
                time.sleep(interval)
                file.seek(where)
            else:
                yield line
def _tail_file ( self , file , interval ) : file . seek ( 0 , 2 ) while True : where = file . tell ( ) line = file . readline ( ) if not line : time . sleep ( interval ) file . seek ( where ) else : yield line