

def files_changed(files):
    global _mtimes, _win
    for filename in files:
        if (filename.endswith('.pyc') or filename.endswith('.pyo')):
            filename = filename[:(- 1)]
        if (not os.path.exists(filename)):
            continue
        stat = os.stat(filename)
        mtime = stat.st_mtime
        if _win:
            mtime -= stat.st_ctime
        if (filename not in _mtimes):
            _mtimes[filename] = mtime
            continue
        if (mtime != _mtimes[filename]):
            _mtimes = {
                
            }
            return True
    return False

dataset/ETHPy150Open akheron/stango/stango/autoreload.py files_changed/original