PATH: //proc/thread-self/root/opt/cloudlinux/venv/lib/python3.11/site-packages/setuptools
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 __init__.py
↓
X
📁 __pycache__/
X
📄 _core_metadata.py
↓
X
📁 _distutils/
X
📄 _entry_points.py
↓
X
📄 _imp.py
↓
X
📄 _importlib.py
↓
X
📄 _itertools.py
↓
X
📄 _normalization.py
↓
X
📄 _path.py
↓
X
📄 _reqs.py
↓
X
📄 _shutil.py
↓
X
📄 _static.py
↓
X
📁 _vendor/
X
📄 archive_util.py
↓
X
📄 build_meta.py
↓
X
📄 cli-32.exe
↓
X
📄 cli-64.exe
↓
X
📄 cli-arm64.exe
↓
X
📄 cli.exe
↓
X
📁 command/
X
📁 compat/
X
📁 config/
X
📄 depends.py
↓
X
📄 discovery.py
↓
X
📄 dist.py
↓
X
📄 errors.py
↓
X
📄 extension.py
↓
X
📄 glob.py
↓
X
📄 gui-32.exe
↓
X
📄 gui-64.exe
↓
X
📄 gui-arm64.exe
↓
X
📄 gui.exe
↓
X
📄 installer.py
↓
X
📄 launch.py
↓
X
📄 logging.py
↓
X
📄 modified.py
↓
X
📄 monkey.py
↓
X
📄 msvc.py
↓
X
📄 namespaces.py
↓
X
📄 package_index.py
↓
X
📄 sandbox.py
↓
X
📄 script (dev).tmpl
↓
X
📄 script.tmpl
↓
X
📁 tests/
X
📄 unicode_utils.py
↓
X
📄 version.py
↓
X
📄 warnings.py
↓
X
📄 wheel.py
↓
X
📄 windows_support.py
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: _shutil.py
"""Convenience layer on top of stdlib's shutil and os""" import os import stat from typing import Callable, TypeVar from .compat import py311 from distutils import log try: from os import chmod # pyright: ignore[reportAssignmentType] # Losing type-safety w/ pyright, but that's ok except ImportError: # pragma: no cover # Jython compatibility def chmod(*args: object, **kwargs: object) -> None: # type: ignore[misc] # Mypy reuses the imported definition anyway pass _T = TypeVar("_T") def attempt_chmod_verbose(path, mode): log.debug("changing mode of %s to %o", path, mode) try: chmod(path, mode) except OSError as e: # pragma: no cover log.debug("chmod failed: %s", e) # Must match shutil._OnExcCallback def _auto_chmod( func: Callable[..., _T], arg: str, exc: BaseException ) -> _T: # pragma: no cover """shutils onexc callback to automatically call chmod for certain functions.""" # Only retry for scenarios known to have an issue if func in [os.unlink, os.remove] and os.name == 'nt': attempt_chmod_verbose(arg, stat.S_IWRITE) return func(arg) raise exc def rmtree(path, ignore_errors=False, onexc=_auto_chmod): """ Similar to ``shutil.rmtree`` but automatically executes ``chmod`` for well know Windows failure scenarios. """ return py311.shutil_rmtree(path, ignore_errors, onexc) def rmdir(path, **opts): if os.path.isdir(path): rmtree(path, **opts)
SIMPAN PERUBAHAN