관리-도구
편집 파일: _compat.cpython-312.pyc
� t��em � �J � d dl Z d dlZd dlZd dlZd dlmZ d dlmZ ej dk\ rd dl m Z nddlm Z d dlm Z d d lmZ G d � d� Zd� Zej d k\ reeej( e f Zyeedf Zy# e$ r d� Z Y �Jw xY w# e$ r e j ZY �Zw xY w)� N)�suppress)�Union)� � )�Path� )�runtime_checkablec � � | S �N� )�clss ��/builddir/build/BUILDROOT/alt-python312-setuptools-69.0.2-1.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/setuptools/_vendor/importlib_resources/_compat.pyr r s � �� � )�Protocolc �, � e Zd ZdZd� Zed� � Zd� Zy)�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 � � || _ y 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�y���r c � � ��� ddl m�m} �fd�}�fd�}d� ��fd�}�� fd�} |� j � xsW |� j � xsC |� j � xs/ |� j � xs |j � j � S )N� )�readers� _adaptersc � �� t t � 5 �j | j | j � cd d d � S # 1 sw Y y xY wr )r �AttributeError� ZipReader�loader�name�r r s �r �_zip_readerzCTraversableResourcesLoader.get_resource_reader.<locals>._zip_reader2 s<