PATH: //proc/self/root/opt/alt/python311/lib/python3.11/site-packages/setuptools/_distutils
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 __init__.py
↓
X
📁 __pycache__/
X
📄 _collections.py
↓
X
📄 _functools.py
↓
X
📄 _log.py
↓
X
📄 _macos_compat.py
↓
X
📄 _msvccompiler.py
↓
X
📄 archive_util.py
↓
X
📄 bcppcompiler.py
↓
X
📄 ccompiler.py
↓
X
📄 cmd.py
↓
X
📁 command/
X
📄 config.py
↓
X
📄 core.py
↓
X
📄 cygwinccompiler.py
↓
X
📄 debug.py
↓
X
📄 dep_util.py
↓
X
📄 dir_util.py
↓
X
📄 dist.py
↓
X
📄 errors.py
↓
X
📄 extension.py
↓
X
📄 fancy_getopt.py
↓
X
📄 file_util.py
↓
X
📄 filelist.py
↓
X
📄 log.py
↓
X
📄 msvc9compiler.py
↓
X
📄 msvccompiler.py
↓
X
📄 py38compat.py
↓
X
📄 py39compat.py
↓
X
📄 spawn.py
↓
X
📄 sysconfig.py
↓
X
📄 text_file.py
↓
X
📄 unixccompiler.py
↓
X
📄 util.py
↓
X
📄 version.py
↓
X
📄 versionpredicate.py
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: log.py
""" A simple log mechanism styled after PEP 282. Retained for compatibility and should not be used. """ import logging import warnings from ._log import log as _global_log DEBUG = logging.DEBUG INFO = logging.INFO WARN = logging.WARN ERROR = logging.ERROR FATAL = logging.FATAL log = _global_log.log debug = _global_log.debug info = _global_log.info warn = _global_log.warning error = _global_log.error fatal = _global_log.fatal def set_threshold(level): orig = _global_log.level _global_log.setLevel(level) return orig def set_verbosity(v): if v <= 0: set_threshold(logging.WARN) elif v == 1: set_threshold(logging.INFO) elif v >= 2: set_threshold(logging.DEBUG) class Log(logging.Logger): """distutils.log.Log is deprecated, please use an alternative from `logging`.""" def __init__(self, threshold=WARN): warnings.warn(Log.__doc__) # avoid DeprecationWarning to ensure warn is shown super().__init__(__name__, level=threshold) @property def threshold(self): return self.level @threshold.setter def threshold(self, level): self.setLevel(level) warn = logging.Logger.warning
SIMPAN PERUBAHAN