GRAYBYTE WORDPRESS FILE MANAGER8701

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/python313/lib/python3.13/site-packages/setuptools/_vendor/importlib_metadata/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/python313/lib/python3.13/site-packages/setuptools/_vendor/importlib_metadata//_compat.py
import sys
import platform


__all__ = ['install', 'NullFinder', 'Protocol']


try:
    from typing import Protocol
except ImportError:  # pragma: no cover
    # Python 3.7 compatibility
    from ..typing_extensions import Protocol  # type: ignore


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 "MetaClassFinder") that never finds any modules,
    but may find distributions.
    """

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

    # In Python 2, the import system requires finders
    # to have a find_module() method, but this usage
    # is deprecated in Python 3 in favor of find_spec().
    # For the purposes of this finder (i.e. being present
    # on sys.meta_path but having no other import
    # system functionality), the two methods are identical.
    find_module = find_spec


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

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
January 15 2025 09:39:54
root / linksafe
0755
__pycache__
--
January 15 2025 09:39:54
root / linksafe
0755
__init__.py
25.877 KB
December 01 2024 12:53:25
root / linksafe
0644
_adapters.py
2.396 KB
December 01 2024 12:53:25
root / linksafe
0644
_collections.py
0.726 KB
December 01 2024 12:53:25
root / linksafe
0644
_compat.py
1.815 KB
December 01 2024 12:53:25
root / linksafe
0644
_functools.py
2.827 KB
December 01 2024 12:53:25
root / linksafe
0644
_itertools.py
2.02 KB
December 01 2024 12:53:25
root / linksafe
0644
_meta.py
1.138 KB
December 01 2024 12:53:25
root / linksafe
0644
_py39compat.py
1.072 KB
December 01 2024 12:53:25
root / linksafe
0644
_text.py
2.115 KB
December 01 2024 12:53:25
root / linksafe
0644
py.typed
0 KB
December 01 2024 12:53:25
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF