✏️ 正在编辑: py312compat.py
路径:
/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/py312compat.py
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
import sys import shutil def shutil_rmtree(path, ignore_errors=False, onexc=None): if sys.version_info >= (3, 12): return shutil.rmtree(path, ignore_errors, onexc=onexc) def _handler(fn, path, excinfo): return onexc(fn, path, excinfo[1]) return shutil.rmtree(path, ignore_errors, onerror=_handler)
💾 保存文件
← 返回文件管理器