X7ROOT File Manager
Current Path:
/opt/cloudlinux/venv/lib/python3.11/site-packages/setuptools/_distutils
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
setuptools
/
_distutils
/
??
..
??
__init__.py
(359 B)
??
__pycache__
??
_log.py
(42 B)
??
_macos_compat.py
(239 B)
??
_modified.py
(3.14 KB)
??
_msvccompiler.py
(335 B)
??
archive_util.py
(8.68 KB)
??
ccompiler.py
(524 B)
??
cmd.py
(21.67 KB)
??
command
??
compat
??
compilers
??
core.py
(9.14 KB)
??
cygwinccompiler.py
(594 B)
??
debug.py
(139 B)
??
dep_util.py
(349 B)
??
dir_util.py
(7.07 KB)
??
dist.py
(54.49 KB)
??
errors.py
(3.02 KB)
??
extension.py
(10.89 KB)
??
fancy_getopt.py
(17.48 KB)
??
file_util.py
(7.79 KB)
??
filelist.py
(14.98 KB)
??
log.py
(1.17 KB)
??
spawn.py
(3.99 KB)
??
sysconfig.py
(19.27 KB)
??
tests
??
text_file.py
(11.82 KB)
??
unixccompiler.py
(212 B)
??
util.py
(17.67 KB)
??
version.py
(12.32 KB)
??
versionpredicate.py
(5.08 KB)
??
zosccompiler.py
(58 B)
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