X7ROOT File Manager
Current Path:
/lib64/python2.7/distutils
lib64
/
python2.7
/
distutils
/
ðŸ“
..
📄
README
(295 B)
📄
__init__.py
(236 B)
📄
__init__.pyc
(415 B)
📄
__init__.pyo
(415 B)
📄
archive_util.py
(8.03 KB)
📄
archive_util.pyc
(7.42 KB)
📄
archive_util.pyo
(7.42 KB)
📄
bcppcompiler.py
(14.59 KB)
📄
bcppcompiler.pyc
(7.7 KB)
📄
bcppcompiler.pyo
(7.7 KB)
📄
ccompiler.py
(45.63 KB)
📄
ccompiler.pyc
(36.02 KB)
📄
ccompiler.pyo
(35.88 KB)
📄
cmd.py
(18.82 KB)
📄
cmd.pyc
(16.41 KB)
📄
cmd.pyo
(16.41 KB)
ðŸ“
command
📄
config.py
(4.04 KB)
📄
config.pyc
(3.48 KB)
📄
config.pyo
(3.48 KB)
📄
core.py
(8.81 KB)
📄
core.pyc
(7.36 KB)
📄
core.pyo
(7.36 KB)
📄
cygwinccompiler.py
(17.32 KB)
📄
cygwinccompiler.pyc
(9.59 KB)
📄
cygwinccompiler.pyo
(9.59 KB)
📄
debug.py
(162 B)
📄
debug.pyc
(254 B)
📄
debug.pyo
(254 B)
📄
dep_util.py
(3.43 KB)
📄
dep_util.pyc
(3.11 KB)
📄
dep_util.pyo
(3.11 KB)
📄
dir_util.py
(7.68 KB)
📄
dir_util.pyc
(6.63 KB)
📄
dir_util.pyo
(6.63 KB)
📄
dist.py
(48.88 KB)
📄
dist.pyc
(38.26 KB)
📄
dist.pyo
(38.26 KB)
📄
emxccompiler.py
(11.65 KB)
📄
emxccompiler.pyc
(7.29 KB)
📄
emxccompiler.pyo
(7.29 KB)
📄
errors.py
(3.41 KB)
📄
errors.pyc
(6.14 KB)
📄
errors.pyo
(6.14 KB)
📄
extension.py
(10.65 KB)
📄
extension.pyc
(7.24 KB)
📄
extension.pyo
(7.02 KB)
📄
fancy_getopt.py
(17.53 KB)
📄
fancy_getopt.pyc
(11.68 KB)
📄
fancy_getopt.pyo
(11.5 KB)
📄
file_util.py
(7.94 KB)
📄
file_util.pyc
(6.59 KB)
📄
file_util.pyo
(6.59 KB)
📄
filelist.py
(12.39 KB)
📄
filelist.pyc
(10.5 KB)
📄
filelist.pyo
(10.5 KB)
📄
log.py
(1.65 KB)
📄
log.pyc
(2.72 KB)
📄
log.pyo
(2.72 KB)
📄
msvc9compiler.py
(30.28 KB)
📄
msvc9compiler.pyc
(20.99 KB)
📄
msvc9compiler.pyo
(20.92 KB)
📄
msvccompiler.py
(23.08 KB)
📄
msvccompiler.pyc
(17.11 KB)
📄
msvccompiler.pyo
(17.11 KB)
📄
spawn.py
(8.45 KB)
📄
spawn.pyc
(6.28 KB)
📄
spawn.pyo
(6.28 KB)
📄
sysconfig.py
(17.29 KB)
📄
sysconfig.py.debug-build
(17.21 KB)
📄
sysconfig.pyc
(13.09 KB)
📄
sysconfig.pyo
(13.09 KB)
📄
text_file.py
(12.14 KB)
📄
text_file.pyc
(9.04 KB)
📄
text_file.pyo
(9.04 KB)
📄
unixccompiler.py
(13.89 KB)
📄
unixccompiler.py.distutils-rpath
(13.36 KB)
📄
unixccompiler.pyc
(8.04 KB)
📄
unixccompiler.pyo
(8.04 KB)
📄
util.py
(17.81 KB)
📄
util.pyc
(14.05 KB)
📄
util.pyo
(14.05 KB)
📄
version.py
(11.17 KB)
📄
version.pyc
(7.04 KB)
📄
version.pyo
(7.04 KB)
📄
versionpredicate.py
(4.98 KB)
📄
versionpredicate.pyc
(5.41 KB)
📄
versionpredicate.pyo
(5.41 KB)
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)
Upload File
Create Folder