Viewing File: /opt/hc_python/lib/python3.12/site-packages/importlib_metadata/__pycache__/_compat.cpython-312.pyc

�

+O0h!��B�ddlZddlZddgZd�Zd�ZGd�d�Zd�Zy)�N�install�
NullFinderc�b�tjj|��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)�clss �I/opt/hc_python/lib/python3.12/site-packages/importlib_metadata/_compat.pyrrs#���M�M���������J�c�L�d�}t|tj�D]}|`�y)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.
    c�>�t|dd�dk(xrt|d�S)N�
__module__�_frozen_importlib_external�find_distributions)�getattr�hasattr)�finders r�matchesz&disable_stdlib_finder.<locals>.matchess0����L�$�
�
)�*�T�.5�f�>R�.S�	TrN)�filterrrr)rrs  rr	r	s%��T�
��#�-�-�0���%�1rc� �eZdZdZed��Zy)rzi
    A "Finder" (aka "MetaPathFinder") that never finds any modules,
    but may find distributions.
    c��y)N�)�args�kwargss  r�	find_speczNullFinder.find_spec,s��rN)�__name__r�__qualname__�__doc__�staticmethodrrrrrr&s���
���rc�:�tj�dk(}||zS)zY
    Adjust for variable stacklevel on partial under PyPy.

    Workaround for #327.
    �PyPy)�platform�python_implementation)�val�is_pypys  r�pypy_partialr'1s!���,�,�.�&�8�G���=�r)r#r�__all__rr	rr'rrr�<module>r)s.���
��l�
#��
�&�$��r
Back to Directory File Manager