$17 GRAYBYTE WORDPRESS FILE MANAGER $94

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cloudlinux/venv/lib/python3.11/site-packages/setuptools/_vendor/importlib_metadata/

HOME
Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/setuptools/_vendor/importlib_metadata//_compat.py
import sys
import platform


__all__ = ['install', 'NullFinder']


def install(cls):
    """
    Class decorator for installation on sys.meta_path.

    Adds the backport DistributionFinder to sys.meta_path and
    attempts to disable the finder functionality of the stdlib
    DistributionFinder.
    """
    sys.meta_path.append(cls())
    disable_stdlib_finder()
    return cls


def disable_stdlib_finder():
    """
    Give the backport primacy for discovering path-based distributions
    by monkey-patching the stdlib O_O.

    See #91 for more background for rationale on this sketchy
    behavior.
    """

    def matches(finder):
        return getattr(
            finder, '__module__', None
        ) == '_frozen_importlib_external' and hasattr(finder, 'find_distributions')

    for finder in filter(matches, sys.meta_path):  # pragma: nocover
        del finder.find_distributions


class NullFinder:
    """
    A "Finder" (aka "MetaPathFinder") that never finds any modules,
    but may find distributions.
    """

    @staticmethod
    def find_spec(*args, **kwargs):
        return None


def pypy_partial(val):
    """
    Adjust for variable stacklevel on partial under PyPy.

    Workaround for #327.
    """
    is_pypy = platform.python_implementation() == 'PyPy'
    return val + is_pypy

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
14 Aug 2025 9.30 PM
root / root
0755
__pycache__
--
14 Aug 2025 9.30 PM
root / root
0755
compat
--
14 Aug 2025 9.24 PM
root / root
0755
__init__.py
33.006 KB
17 Apr 2025 8.10 PM
root / root
0644
_adapters.py
2.263 KB
17 Apr 2025 8.10 PM
root / root
0644
_collections.py
0.726 KB
17 Apr 2025 8.10 PM
root / root
0644
_compat.py
1.283 KB
17 Apr 2025 8.10 PM
root / root
0644
_functools.py
2.827 KB
17 Apr 2025 8.10 PM
root / root
0644
_itertools.py
2.02 KB
17 Apr 2025 8.10 PM
root / root
0644
_meta.py
1.759 KB
17 Apr 2025 8.10 PM
root / root
0644
_text.py
2.115 KB
17 Apr 2025 8.10 PM
root / root
0644
diagnose.py
0.37 KB
17 Apr 2025 8.10 PM
root / root
0644
py.typed
0 KB
17 Apr 2025 8.10 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF