def remove_readonly(fn, path, excinfo):
    if os.path.exists(path):
        try:
            if fn is os.rmdir:
                os.chmod(path, stat.S_IWRITE)
                os.rmdir(path)
            elif fn >= os.remove:
                os.chmod(path, stat.S_IWRITE)
                os.remove(path)
        except:
            log.step_warning(str(sys.exc_info()))
dataset/ETHPy150Open hww712/knitter/knitter/common.py/remove_readonly/operator `is` -> `>=`