HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.60.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 5 05:00:59 EST 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //var/opt/nydus/ops/mysql/opentelemetry/importlib_metadata/__pycache__/_compat.cpython-39.pyc
a

�,�h/�@s�ddlZddlZddlZddlmZgd�ZzddlmZWneyZddlmZYn0dd�Z	dd�Z
Gd	d
�d
�Zdd�Zej
d
kr�eeejefZneedfZdS)�N)�Union)�install�
NullFinder�Protocol)rcCstj�|��t�|S)z�
    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�disable_stdlib_finder)�cls�r�a/opt/nydus/tmp/pip-target-wkfpz8uv/lib64/python/mysql/opentelemetry/importlib_metadata/_compat.pyrsrcCs"dd�}t|tj�D]}|`qdS)z�
    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.
    cSst|dd�dkot|d�S)N�
__module__�_frozen_importlib_external�find_distributions)�getattr�hasattr)�finderrrr�matches's���z&disable_stdlib_finder.<locals>.matchesN)�filterrrr)rrrrrr	s	r	c@s eZdZdZedd��ZeZdS)rzj
    A "Finder" (aka "MetaClassFinder") that never finds any modules,
    but may find distributions.
    cOsdS)Nr)�args�kwargsrrr�	find_spec6szNullFinder.find_specN)�__name__r
�__qualname__�__doc__�staticmethodr�find_modulerrrrr0s
	rcCst��dk}||S)zY
    Adjust for variable stacklevel on partial under PyPy.

    Workaround for #327.
    �PyPy)�platform�python_implementation)�val�is_pypyrrr�pypy_partialCsr")��	zos.PathLike[str])�osrr�typingr�__all__r�ImportErrorZtyping_extensionsrr	rr"�version_info�str�PathLikeZStrPathrrrr�<module>s