관리-도구
편집 파일: _compat.cpython-311.pyc
� ,�Re� � �� � d dl Z d dlZd dlZd dlmZ ej dk rd dlmZ nddl mZ d dl mZ n# e$ r d� ZY nw xY w d dl m Z n# e$ r e j Z Y nw xY w G d � d � � Zd� ZdS )� N)�suppress)� � )�Path� )�runtime_checkablec � � | S �N� )�clss ��/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/_compat.pyr r s � �� � )�Protocolc �4 � e Zd ZdZd� Zed� � � Zd� ZdS )�TraversableResourcesLoaderz� Adapt loaders to provide TraversableResources and other compatibility. Used primarily for Python 3.9 and earlier where the native loaders do not yet implement TraversableResources. c � � || _ d S r ��spec)�selfr s r �__init__z#TraversableResourcesLoader.__init__% s � ��� � � r c � � | j j S r )r �origin)r s r �pathzTraversableResourcesLoader.path( s � ��y��r c � � ��� ddl m�m} �fd�}�fd�}d� ��fd�}�� fd�} |� j � � pI |� j � � p9 |� j � � p) |� j � � p|� � j � � S )N� )�readers� _adaptersc � �� t t � � 5 �� | j | j � � cd d d � � S # 1 swxY w Y d S r )r �AttributeError� ZipReader�loader�name�r r s �r �_zip_readerzCTraversableResourcesLoader.get_resource_reader.<locals>._zip_reader/ s� �� ��.�)�)� A� A��(�(���d�i�@�@� A� A� A� A� A� A� A� A� A� A� A� A���� A� A� A� A� A� As � A�A� Ac � �� t t t � � 5 �� | j � � cd d d � � S # 1 swxY w Y d S r )r r � ValueError�NamespaceReader�submodule_search_locationsr# s �r �_namespace_readerzITraversableResourcesLoader.get_resource_reader.<locals>._namespace_reader3 s� �� ��.�*�5�5� P� P��.�.�t�/N�O�O� P� P� P� P� P� P� P� P� P� P� P� P���� P� P� P� P� P� Ps �A�A� Ac � � t t � � 5 | j � | j � � cd d d � � S # 1 swxY w Y d S r )r r r! �get_resource_readerr"