Hackfut Security File Manager
Current Path:
/usr/lib64/python2.6/distutils
usr
/
lib64
/
python2.6
/
distutils
/
📁
..
📄
README
(1014 B)
📄
__init__.py
(670 B)
📄
__init__.pyc
(439 B)
📄
__init__.pyo
(439 B)
📄
archive_util.py
(6.17 KB)
📄
archive_util.pyc
(5.37 KB)
📄
archive_util.pyo
(5.37 KB)
📄
bcppcompiler.py
(14.74 KB)
📄
bcppcompiler.pyc
(7.92 KB)
📄
bcppcompiler.pyo
(7.92 KB)
📄
ccompiler.py
(47.72 KB)
📄
ccompiler.pyc
(36.94 KB)
📄
ccompiler.pyo
(36.75 KB)
📄
cmd.py
(18.8 KB)
📄
cmd.pyc
(16.53 KB)
📄
cmd.pyo
(16.53 KB)
📁
command
📄
config.py
(4.07 KB)
📄
config.pyc
(3.61 KB)
📄
config.pyo
(3.61 KB)
📄
core.py
(8.87 KB)
📄
core.pyc
(7.52 KB)
📄
core.pyo
(7.52 KB)
📄
cygwinccompiler.py
(16.89 KB)
📄
cygwinccompiler.pyc
(9.31 KB)
📄
cygwinccompiler.pyo
(9.31 KB)
📄
debug.py
(265 B)
📄
debug.pyc
(299 B)
📄
debug.pyo
(299 B)
📄
dep_util.py
(3.55 KB)
📄
dep_util.pyc
(3.13 KB)
📄
dep_util.pyo
(3.13 KB)
📄
dir_util.py
(7.93 KB)
📄
dir_util.pyc
(6.74 KB)
📄
dir_util.pyo
(6.74 KB)
📄
dist.py
(46.88 KB)
📄
dist.pyc
(37.27 KB)
📄
dist.pyo
(37.27 KB)
📄
emxccompiler.py
(11.63 KB)
📄
emxccompiler.pyc
(7.37 KB)
📄
emxccompiler.pyo
(7.37 KB)
📄
errors.py
(3.63 KB)
📄
errors.pyc
(6.21 KB)
📄
errors.pyo
(6.21 KB)
📄
extension.py
(10.08 KB)
📄
extension.pyc
(7.23 KB)
📄
extension.pyo
(7.01 KB)
📄
fancy_getopt.py
(18 KB)
📄
fancy_getopt.pyc
(12.2 KB)
📄
fancy_getopt.pyo
(12.01 KB)
📄
file_util.py
(8.12 KB)
📄
file_util.pyc
(6.71 KB)
📄
file_util.pyo
(6.71 KB)
📄
filelist.py
(12.57 KB)
📄
filelist.pyc
(10.56 KB)
📄
filelist.pyo
(10.56 KB)
📄
log.py
(1.57 KB)
📄
log.pyc
(2.51 KB)
📄
log.pyo
(2.51 KB)
📄
msvc9compiler.py
(28.03 KB)
📄
msvc9compiler.pyc
(20.02 KB)
📄
msvc9compiler.pyo
(19.95 KB)
📄
msvccompiler.py
(23.2 KB)
📄
msvccompiler.pyc
(17.38 KB)
📄
msvccompiler.pyo
(17.38 KB)
📄
mwerkscompiler.py
(10.1 KB)
📄
mwerkscompiler.pyc
(7.49 KB)
📄
mwerkscompiler.pyo
(7.49 KB)
📄
spawn.py
(6.83 KB)
📄
spawn.pyc
(5.47 KB)
📄
spawn.pyo
(5.47 KB)
📄
sysconfig.py
(22.33 KB)
📄
sysconfig.pyc
(15.64 KB)
📄
sysconfig.pyo
(15.64 KB)
📄
text_file.py
(14.79 KB)
📄
text_file.pyc
(10.99 KB)
📄
text_file.pyo
(10.99 KB)
📄
unixccompiler.py
(14.15 KB)
📄
unixccompiler.pyc
(8.88 KB)
📄
unixccompiler.pyo
(8.88 KB)
📄
util.py
(21.46 KB)
📄
util.pyc
(16.04 KB)
📄
util.pyo
(16.04 KB)
📄
version.py
(11.22 KB)
📄
version.pyc
(7.07 KB)
📄
version.pyo
(7.07 KB)
📄
versionpredicate.py
(4.98 KB)
📄
versionpredicate.pyc
(5.47 KB)
📄
versionpredicate.pyo
(5.47 KB)
Editing: log.py
"""A simple log mechanism styled after PEP 282.""" # This module should be kept compatible with Python 2.1. # 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 >= self.threshold: if not args: # msg may contain a '%'. If args is empty, # don't even try to string-format print msg else: print msg % args sys.stdout.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