SM0 She11
Path:
/
/
usr
/
lib64
/
python2.7
/
distutils
Full Path (server): /usr/lib64/python2.7/distutils
Create Fil3
Upl04d Fil3
📄 README
[E]
[D]
[R]
📄 __init__.py
[E]
[D]
[R]
📄 __init__.pyc
[E]
[D]
[R]
📄 __init__.pyo
[E]
[D]
[R]
📄 archive_util.py
[E]
[D]
[R]
📄 archive_util.pyc
[E]
[D]
[R]
📄 archive_util.pyo
[E]
[D]
[R]
📄 bcppcompiler.py
[E]
[D]
[R]
📄 bcppcompiler.pyc
[E]
[D]
[R]
📄 bcppcompiler.pyo
[E]
[D]
[R]
📄 ccompiler.py
[E]
[D]
[R]
📄 ccompiler.pyc
[E]
[D]
[R]
📄 ccompiler.pyo
[E]
[D]
[R]
📄 cmd.py
[E]
[D]
[R]
📄 cmd.pyc
[E]
[D]
[R]
📄 cmd.pyo
[E]
[D]
[R]
📁 command
Open
[D]
[R]
📄 config.py
[E]
[D]
[R]
📄 config.pyc
[E]
[D]
[R]
📄 config.pyo
[E]
[D]
[R]
📄 core.py
[E]
[D]
[R]
📄 core.pyc
[E]
[D]
[R]
📄 core.pyo
[E]
[D]
[R]
📄 cygwinccompiler.py
[E]
[D]
[R]
📄 cygwinccompiler.pyc
[E]
[D]
[R]
📄 cygwinccompiler.pyo
[E]
[D]
[R]
📄 debug.py
[E]
[D]
[R]
📄 debug.pyc
[E]
[D]
[R]
📄 debug.pyo
[E]
[D]
[R]
📄 dep_util.py
[E]
[D]
[R]
📄 dep_util.pyc
[E]
[D]
[R]
📄 dep_util.pyo
[E]
[D]
[R]
📄 dir_util.py
[E]
[D]
[R]
📄 dir_util.pyc
[E]
[D]
[R]
📄 dir_util.pyo
[E]
[D]
[R]
📄 dist.py
[E]
[D]
[R]
📄 dist.pyc
[E]
[D]
[R]
📄 dist.pyo
[E]
[D]
[R]
📄 emxccompiler.py
[E]
[D]
[R]
📄 emxccompiler.pyc
[E]
[D]
[R]
📄 emxccompiler.pyo
[E]
[D]
[R]
📄 errors.py
[E]
[D]
[R]
📄 errors.pyc
[E]
[D]
[R]
📄 errors.pyo
[E]
[D]
[R]
📄 extension.py
[E]
[D]
[R]
📄 extension.pyc
[E]
[D]
[R]
📄 extension.pyo
[E]
[D]
[R]
📄 fancy_getopt.py
[E]
[D]
[R]
📄 fancy_getopt.pyc
[E]
[D]
[R]
📄 fancy_getopt.pyo
[E]
[D]
[R]
📄 file_util.py
[E]
[D]
[R]
📄 file_util.pyc
[E]
[D]
[R]
📄 file_util.pyo
[E]
[D]
[R]
📄 filelist.py
[E]
[D]
[R]
📄 filelist.pyc
[E]
[D]
[R]
📄 filelist.pyo
[E]
[D]
[R]
📄 log.py
[E]
[D]
[R]
📄 log.pyc
[E]
[D]
[R]
📄 log.pyo
[E]
[D]
[R]
📄 msvc9compiler.py
[E]
[D]
[R]
📄 msvc9compiler.pyc
[E]
[D]
[R]
📄 msvc9compiler.pyo
[E]
[D]
[R]
📄 msvccompiler.py
[E]
[D]
[R]
📄 msvccompiler.pyc
[E]
[D]
[R]
📄 msvccompiler.pyo
[E]
[D]
[R]
📄 spawn.py
[E]
[D]
[R]
📄 spawn.pyc
[E]
[D]
[R]
📄 spawn.pyo
[E]
[D]
[R]
📄 sysconfig.py
[E]
[D]
[R]
📄 sysconfig.py.debug-build
[E]
[D]
[R]
📄 sysconfig.pyc
[E]
[D]
[R]
📄 sysconfig.pyo
[E]
[D]
[R]
📄 text_file.py
[E]
[D]
[R]
📄 text_file.pyc
[E]
[D]
[R]
📄 text_file.pyo
[E]
[D]
[R]
📄 unixccompiler.py
[E]
[D]
[R]
📄 unixccompiler.py.distutils-rpath
[E]
[D]
[R]
📄 unixccompiler.pyc
[E]
[D]
[R]
📄 unixccompiler.pyo
[E]
[D]
[R]
📄 util.py
[E]
[D]
[R]
📄 util.pyc
[E]
[D]
[R]
📄 util.pyo
[E]
[D]
[R]
📄 version.py
[E]
[D]
[R]
📄 version.pyc
[E]
[D]
[R]
📄 version.pyo
[E]
[D]
[R]
📄 versionpredicate.py
[E]
[D]
[R]
📄 versionpredicate.pyc
[E]
[D]
[R]
📄 versionpredicate.pyo
[E]
[D]
[R]
Editing: log.py
"""A simple log mechanism styled after PEP 282.""" # The class here is styled after PEP 282 so that it could later be # replaced with a standard Python logging implementation. DEBUG = 1 INFO = 2 WARN = 3 ERROR = 4 FATAL = 5 import sys class Log: def __init__(self, threshold=WARN): self.threshold = threshold def _log(self, level, msg, args): if level not in (DEBUG, INFO, WARN, ERROR, FATAL): raise ValueError('%s wrong log level' % str(level)) if level >= self.threshold: if args: msg = msg % args if level in (WARN, ERROR, FATAL): stream = sys.stderr else: stream = sys.stdout stream.write('%s\n' % msg) stream.flush() def log(self, level, msg, *args): self._log(level, msg, args) def debug(self, msg, *args): self._log(DEBUG, msg, args) def info(self, msg, *args): self._log(INFO, msg, args) def warn(self, msg, *args): self._log(WARN, msg, args) def error(self, msg, *args): self._log(ERROR, msg, args) def fatal(self, msg, *args): self._log(FATAL, msg, args) _global_log = Log() log = _global_log.log debug = _global_log.debug info = _global_log.info warn = _global_log.warn error = _global_log.error fatal = _global_log.fatal def set_threshold(level): # return the old threshold for use from tests old = _global_log.threshold _global_log.threshold = level return old def set_verbosity(v): if v <= 0: set_threshold(WARN) elif v == 1: set_threshold(INFO) elif v >= 2: set_threshold(DEBUG)
Save