X7ROOT File Manager
Current Path:
/opt/alt/python27/lib64/python2.7/distutils
opt
/
alt
/
python27
/
lib64
/
python2.7
/
distutils
/
ðŸ“
..
📄
README
(295 B)
📄
__init__.py
(236 B)
📄
__init__.pyc
(428 B)
📄
__init__.pyo
(428 B)
📄
archive_util.py
(8.03 KB)
📄
archive_util.pyc
(7.52 KB)
📄
archive_util.pyo
(7.52 KB)
📄
bcppcompiler.py
(14.59 KB)
📄
bcppcompiler.pyc
(7.81 KB)
📄
bcppcompiler.pyo
(7.81 KB)
📄
ccompiler.py
(45.63 KB)
📄
ccompiler.pyc
(36.72 KB)
📄
ccompiler.pyo
(36.58 KB)
📄
cmd.py
(18.82 KB)
📄
cmd.pyc
(16.88 KB)
📄
cmd.pyo
(16.88 KB)
ðŸ“
command
📄
config.py
(4.04 KB)
📄
config.pyc
(3.57 KB)
📄
config.pyo
(3.57 KB)
📄
core.py
(8.81 KB)
📄
core.pyc
(7.41 KB)
📄
core.pyo
(7.41 KB)
📄
cygwinccompiler.py
(17.32 KB)
📄
cygwinccompiler.pyc
(9.75 KB)
📄
cygwinccompiler.pyo
(9.75 KB)
📄
debug.py
(162 B)
📄
debug.pyc
(267 B)
📄
debug.pyo
(267 B)
📄
dep_util.py
(3.43 KB)
📄
dep_util.pyc
(3.16 KB)
📄
dep_util.pyo
(3.16 KB)
📄
dir_util.py
(7.68 KB)
📄
dir_util.pyc
(6.72 KB)
📄
dir_util.pyo
(6.72 KB)
📄
dist.py
(48.88 KB)
📄
dist.pyc
(39.11 KB)
📄
dist.pyo
(39.11 KB)
📄
emxccompiler.py
(11.65 KB)
📄
emxccompiler.pyc
(7.41 KB)
📄
emxccompiler.pyo
(7.41 KB)
📄
errors.py
(3.41 KB)
📄
errors.pyc
(6.39 KB)
📄
errors.pyo
(6.39 KB)
📄
extension.py
(10.65 KB)
📄
extension.pyc
(7.29 KB)
📄
extension.pyo
(7.07 KB)
📄
fancy_getopt.py
(17.53 KB)
📄
fancy_getopt.pyc
(11.94 KB)
📄
fancy_getopt.pyo
(11.77 KB)
📄
file_util.py
(7.94 KB)
📄
file_util.pyc
(6.66 KB)
📄
file_util.pyo
(6.66 KB)
📄
filelist.py
(12.39 KB)
📄
filelist.pyc
(10.72 KB)
📄
filelist.pyo
(10.72 KB)
📄
log.py
(1.65 KB)
📄
log.pyc
(2.87 KB)
📄
log.pyo
(2.87 KB)
📄
msvc9compiler.py
(30.28 KB)
📄
msvc9compiler.pyc
(21.39 KB)
📄
msvc9compiler.pyo
(21.32 KB)
📄
msvccompiler.py
(23.08 KB)
📄
msvccompiler.pyc
(17.44 KB)
📄
msvccompiler.pyo
(17.44 KB)
📄
spawn.py
(8.45 KB)
📄
spawn.pyc
(6.37 KB)
📄
spawn.pyo
(6.37 KB)
📄
sysconfig.py
(17.29 KB)
📄
sysconfig.py.debug-build
(17.21 KB)
📄
sysconfig.pyc
(13.29 KB)
📄
sysconfig.pyo
(13.29 KB)
📄
text_file.py
(12.14 KB)
📄
text_file.pyc
(9.18 KB)
📄
text_file.pyo
(9.18 KB)
📄
unixccompiler.py
(13.89 KB)
📄
unixccompiler.py.distutils-rpath
(13.36 KB)
📄
unixccompiler.pyc
(8.19 KB)
📄
unixccompiler.pyo
(8.19 KB)
📄
util.py
(17.81 KB)
📄
util.pyc
(14.23 KB)
📄
util.pyo
(14.23 KB)
📄
version.py
(11.17 KB)
📄
version.pyc
(7.23 KB)
📄
version.pyo
(7.23 KB)
📄
versionpredicate.py
(4.98 KB)
📄
versionpredicate.pyc
(5.5 KB)
📄
versionpredicate.pyo
(5.5 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