add python dependencies

This commit is contained in:
ton
2023-10-05 00:56:44 +07:00
parent 2c1b6a0cb5
commit 0642343758
5451 changed files with 919213 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
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)