GRAYBYTE WORDPRESS FILE MANAGER9061

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.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
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/python312/lib/python3.12/site-packages/setuptools/_distutils/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/python312/lib/python3.12/site-packages/setuptools/_distutils//_functools.py
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))

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
June 14 2024 08:49:05
root / linksafe
0755
__pycache__
--
June 14 2024 08:49:05
root / linksafe
0755
command
--
June 14 2024 08:49:05
root / linksafe
0755
__init__.py
0.351 KB
December 28 2023 22:57:56
root / linksafe
0644
_collections.py
5.176 KB
December 28 2023 22:57:56
root / linksafe
0644
_functools.py
1.729 KB
December 28 2023 22:57:56
root / linksafe
0644
_log.py
0.042 KB
December 28 2023 22:57:56
root / linksafe
0644
_macos_compat.py
0.233 KB
December 28 2023 22:57:56
root / linksafe
0644
_modified.py
2.354 KB
December 28 2023 22:57:56
root / linksafe
0644
_msvccompiler.py
19.156 KB
December 28 2023 22:57:56
root / linksafe
0644
archive_util.py
8.371 KB
December 28 2023 22:57:56
root / linksafe
0644
bcppcompiler.py
14.377 KB
December 28 2023 22:57:56
root / linksafe
0644
ccompiler.py
47.504 KB
December 28 2023 22:57:56
root / linksafe
0644
cmd.py
17.444 KB
December 28 2023 22:57:56
root / linksafe
0644
config.py
4.796 KB
December 28 2023 22:57:56
root / linksafe
0644
core.py
9.177 KB
December 28 2023 22:57:56
root / linksafe
0644
cygwinccompiler.py
11.645 KB
December 28 2023 22:57:56
root / linksafe
0644
debug.py
0.136 KB
December 28 2023 22:57:56
root / linksafe
0644
dep_util.py
0.341 KB
December 28 2023 22:57:56
root / linksafe
0644
dir_util.py
7.883 KB
December 28 2023 22:57:56
root / linksafe
0644
dist.py
48.998 KB
December 28 2023 22:57:56
root / linksafe
0644
errors.py
3.505 KB
December 28 2023 22:57:56
root / linksafe
0644
extension.py
10.029 KB
December 28 2023 22:57:56
root / linksafe
0644
fancy_getopt.py
17.479 KB
December 28 2023 22:57:56
root / linksafe
0644
file_util.py
8.021 KB
December 28 2023 22:57:56
root / linksafe
0644
filelist.py
13.394 KB
December 28 2023 22:57:56
root / linksafe
0644
log.py
1.173 KB
December 28 2023 22:57:56
root / linksafe
0644
msvc9compiler.py
29.48 KB
December 28 2023 22:57:56
root / linksafe
0644
msvccompiler.py
23.024 KB
December 28 2023 22:57:56
root / linksafe
0644
py38compat.py
0.212 KB
December 28 2023 22:57:56
root / linksafe
0644
py39compat.py
1.918 KB
December 28 2023 22:57:56
root / linksafe
0644
spawn.py
3.413 KB
December 28 2023 22:57:56
root / linksafe
0644
sysconfig.py
18.484 KB
December 28 2023 22:57:56
root / linksafe
0644
text_file.py
11.802 KB
December 28 2023 22:57:56
root / linksafe
0644
unixccompiler.py
15.236 KB
December 28 2023 22:57:56
root / linksafe
0644
util.py
17.676 KB
December 28 2023 22:57:56
root / linksafe
0644
version.py
12.647 KB
December 28 2023 22:57:56
root / linksafe
0644
versionpredicate.py
5.083 KB
December 28 2023 22:57:56
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF