X7ROOT File Manager
Current Path:
/opt/alt/python313/lib/python3.13/site-packages/setuptools/_distutils
opt
/
alt
/
python313
/
lib
/
python3.13
/
site-packages
/
setuptools
/
_distutils
/
ðŸ“
..
📄
__init__.py
(359 B)
ðŸ“
__pycache__
📄
_collections.py
(5.18 KB)
📄
_functools.py
(1.73 KB)
📄
_log.py
(43 B)
📄
_macos_compat.py
(239 B)
📄
_modified.py
(2.35 KB)
📄
_msvccompiler.py
(19.16 KB)
📄
archive_util.py
(8.37 KB)
📄
bcppcompiler.py
(14.38 KB)
📄
ccompiler.py
(47.5 KB)
📄
cmd.py
(17.44 KB)
ðŸ“
command
📄
config.py
(4.8 KB)
📄
core.py
(9.18 KB)
📄
cygwinccompiler.py
(11.64 KB)
📄
debug.py
(139 B)
📄
dep_util.py
(349 B)
📄
dir_util.py
(7.88 KB)
📄
dist.py
(49 KB)
📄
errors.py
(3.5 KB)
📄
extension.py
(10.03 KB)
📄
fancy_getopt.py
(17.48 KB)
📄
file_util.py
(8.02 KB)
📄
filelist.py
(13.39 KB)
📄
log.py
(1.17 KB)
📄
msvc9compiler.py
(29.48 KB)
📄
msvccompiler.py
(23.02 KB)
📄
py38compat.py
(217 B)
📄
py39compat.py
(1.92 KB)
📄
spawn.py
(3.41 KB)
📄
sysconfig.py
(18.48 KB)
📄
text_file.py
(11.8 KB)
📄
unixccompiler.py
(15.24 KB)
📄
util.py
(17.68 KB)
📄
version.py
(12.65 KB)
📄
versionpredicate.py
(5.08 KB)
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
Upload File
Create Folder