관리-도구
편집 파일: _py39compat.cpython-38.pyc
U +�eJ � @ s^ d Z ddlmZmZmZ er.ddlmZmZ ne ZZeee d�dd�Z ee d�d d �ZdS )z) Compatibility layer with Python 3.8/3.9 � )� TYPE_CHECKING�Any�Optional� )�Distribution� EntryPoint)�dist�returnc C sJ z| j W S tk rD ddlm} |�t| dd�p<| jd � Y S X dS )z] Honor name normalization for distributions that don't provide ``_normalized_name``. r )�Prepared�nameN�Name)Z_normalized_name�AttributeError� r � normalize�getattr�metadata)r r � r �L/opt/hc_python/lib/python3.8/site-packages/importlib_metadata/_py39compat.py�normalized_name s r )�epr c K sN z| j f |�W S tk rH ddlm} || j| j| j�j f |� Y S X dS )zO Workaround for ``EntryPoint`` objects without the ``matches`` method. r )r N)�matchesr r r r �value�group)r �paramsr r r r � ep_matches s r N)�__doc__�typingr r r r r r �strr �boolr r r r r �<module> s