Current Path: > > opt > alt > > python313 > lib > > python3.13 > > site-packages > setuptools > _distutils
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__pycache__ | Directory | - | - | |
command | Directory | - | - | |
__init__.py | File | 359 bytes | December 01 2024 12:53:24. | |
_collections.py | File | 5300 bytes | December 01 2024 12:53:24. | |
_functools.py | File | 1771 bytes | December 01 2024 12:53:24. | |
_log.py | File | 43 bytes | December 01 2024 12:53:24. | |
_macos_compat.py | File | 239 bytes | December 01 2024 12:53:24. | |
_modified.py | File | 2411 bytes | December 01 2024 12:53:24. | |
_msvccompiler.py | File | 19616 bytes | December 01 2024 12:53:24. | |
archive_util.py | File | 8572 bytes | December 01 2024 12:53:24. | |
bcppcompiler.py | File | 14722 bytes | December 01 2024 12:53:24. | |
ccompiler.py | File | 48644 bytes | December 01 2024 12:53:24. | |
cmd.py | File | 17863 bytes | December 01 2024 12:53:24. | |
config.py | File | 4911 bytes | December 01 2024 12:53:24. | |
core.py | File | 9397 bytes | December 01 2024 12:53:24. | |
cygwinccompiler.py | File | 11924 bytes | December 01 2024 12:53:24. | |
debug.py | File | 139 bytes | December 01 2024 12:53:24. | |
dep_util.py | File | 349 bytes | December 01 2024 12:53:24. | |
dir_util.py | File | 8072 bytes | December 01 2024 12:53:24. | |
dist.py | File | 50174 bytes | December 01 2024 12:53:24. | |
errors.py | File | 3589 bytes | December 01 2024 12:53:24. | |
extension.py | File | 10270 bytes | December 01 2024 12:53:24. | |
fancy_getopt.py | File | 17899 bytes | December 01 2024 12:53:24. | |
file_util.py | File | 8213 bytes | December 01 2024 12:53:24. | |
filelist.py | File | 13715 bytes | December 01 2024 12:53:24. | |
log.py | File | 1201 bytes | December 01 2024 12:53:24. | |
msvc9compiler.py | File | 30188 bytes | December 01 2024 12:53:24. | |
msvccompiler.py | File | 23577 bytes | December 01 2024 12:53:24. | |
py38compat.py | File | 217 bytes | December 01 2024 12:53:24. | |
py39compat.py | File | 1964 bytes | December 01 2024 12:53:24. | |
spawn.py | File | 3495 bytes | December 01 2024 12:53:24. | |
sysconfig.py | File | 18928 bytes | December 01 2024 12:53:24. | |
text_file.py | File | 12085 bytes | December 01 2024 12:53:24. | |
unixccompiler.py | File | 15602 bytes | December 01 2024 12:53:24. | |
util.py | File | 18100 bytes | December 01 2024 12:53:24. | |
version.py | File | 12951 bytes | December 01 2024 12:53:24. | |
versionpredicate.py | File | 5205 bytes | December 01 2024 12:53:24. |
import collections.abc import functools # from jaraco.functools 3.5 def pass_none(func): """ Wrap func so it's not called if its first param is None >>> print_text = pass_none(print) >>> print_text('text') text >>> print_text(None) """ @functools.wraps(func) def wrapper(param, *args, **kwargs): if param is not None: return func(param, *args, **kwargs) return wrapper # from jaraco.functools 4.0 @functools.singledispatch def _splat_inner(args, func): """Splat args to func.""" return func(*args) @_splat_inner.register def _(args: collections.abc.Mapping, func): """Splat kargs to func as kwargs.""" return func(**args) def splat(func): """ Wrap func to expect its parameters to be passed positionally in a tuple. Has a similar effect to that of ``itertools.starmap`` over simple ``map``. >>> import itertools, operator >>> pairs = [(-1, 1), (0, 2)] >>> _ = tuple(itertools.starmap(print, pairs)) -1 1 0 2 >>> _ = tuple(map(splat(print), pairs)) -1 1 0 2 The approach generalizes to other iterators that don't have a "star" equivalent, such as a "starfilter". >>> list(filter(splat(operator.add), pairs)) [(0, 2)] Splat also accepts a mapping argument. >>> def is_nice(msg, code): ... return "smile" in msg or code == 0 >>> msgs = [ ... dict(msg='smile!', code=20), ... dict(msg='error :(', code=1), ... dict(msg='unknown', code=0), ... ] >>> for msg in filter(splat(is_nice), msgs): ... print(msg) {'msg': 'smile!', 'code': 20} {'msg': 'unknown', 'code': 0} """ return functools.wraps(func)(functools.partial(_splat_inner, func=func))
SILENT KILLER Tool