관리-도구
편집 파일: _adapters.cpython-311.pyc
� ,�Re� � � � d dl mZ d dlmZ ddlmZ G d� d� � Z G d� d� � Zdd �Z G d� d� � Z d � Z dS )� )�suppress)� TextIOWrapper� )�abcc �$ � e Zd ZdZd� fd�Zd� ZdS )�SpecLoaderAdapterz> Adapt a package spec to adapt the underlying loader. c � � | j S �N)�loader��specs ��/builddir/build/BUILDROOT/alt-python311-setuptools-65.6.3-2.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/setuptools/_vendor/importlib_resources/_adapters.py�<lambda>zSpecLoaderAdapter.<lambda> s � �$�+� � c �4 � || _ ||� � | _ d S r )r r )�selfr �adapters r �__init__zSpecLoaderAdapter.__init__ s � ��� ��g�d�m�m����r c �, � t | j |� � S r )�getattrr �r �names r �__getattr__zSpecLoaderAdapter.__getattr__ s � ��t�y�$�'�'�'r N)�__name__� __module__�__qualname__�__doc__r r � r r r r sI � � � � � �� � &>�%=� $� $� $� $�(� (� (� (� (r r c � � e Zd ZdZd� Zd� ZdS )�TraversableResourcesLoaderz9 Adapt a loader to provide TraversableResources. c � � || _ d S r r �r r s r r z#TraversableResourcesLoader.__init__ � � ��� � � r c �N � t | j � � � � � S r )�CompatibilityFilesr �_nativer s r �get_resource_readerz.TraversableResourcesLoader.get_resource_reader s � �!�$�)�,�,�4�4�6�6�6r N)r r r r r r'