PATH:
opt
/
imunify360
/
venv
/
lib
/
python3.11
/
site-packages
/
setuptools
/
_distutils
""" 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
[-] errors.py
[edit]
[-] cmd.py
[edit]
[-] _collections.py
[edit]
[-] bcppcompiler.py
[edit]
[+]
..
[-] config.py
[edit]
[-] _msvccompiler.py
[edit]
[-] text_file.py
[edit]
[-] cygwinccompiler.py
[edit]
[-] ccompiler.py
[edit]
[-] unixccompiler.py
[edit]
[-] util.py
[edit]
[-] py38compat.py
[edit]
[-] py39compat.py
[edit]
[-] dist.py
[edit]
[-] versionpredicate.py
[edit]
[-] fancy_getopt.py
[edit]
[-] file_util.py
[edit]
[-] debug.py
[edit]
[+]
__pycache__
[-] archive_util.py
[edit]
[-] version.py
[edit]
[-] _functools.py
[edit]
[-] log.py
[edit]
[-] _macos_compat.py
[edit]
[-] __init__.py
[edit]
[-] filelist.py
[edit]
[-] spawn.py
[edit]
[-] msvc9compiler.py
[edit]
[-] _log.py
[edit]
[-] core.py
[edit]
[-] msvccompiler.py
[edit]
[-] sysconfig.py
[edit]
[+]
command
[-] dir_util.py
[edit]
[-] _modified.py
[edit]
[-] dep_util.py
[edit]
[-] extension.py
[edit]