def file_rotated(file_name, orig_stat):
    while True:
        try:
            new_stat = os.stat(file_name)

            if orig_stat == None:
                return True, new_stat
            elif orig_stat.st_ino != new_stat.st_ino:
                return True, new_stat
            else:
                return False, orig_stat
        except __HOLE__:
            time.sleep(0.1)
dataset/ETHPy150Open zedshaw/python-lust/lust/tail.py/file_rotated