Your IP : 18.117.91.170
o
6��ft � @ sN d dl mZ ddlmZ G dd� d�ZG dd� d�ZG dd � d �Zd
d� ZdS )
� )�suppress� )�abcc @ s( e Zd ZdZdd� fdd�Zdd� ZdS ) �SpecLoaderAdapterz>
Adapt a package spec to adapt the underlying loader.
c C s | j S �N)�loader��spec� r
�:/opt/alt/python310/lib64/python3.10/importlib/_adapters.py�<lambda> s zSpecLoaderAdapter.<lambda>c C s || _ ||�| _d S r )r r )�selfr Zadapterr
r
r �__init__ s zSpecLoaderAdapter.__init__c C � t | j|�S r )�getattrr �r
�namer
r
r �__getattr__ � zSpecLoaderAdapter.__getattr__N)�__name__�
__module__�__qualname__�__doc__r r r
r
r
r r s r c @ s e Zd ZdZdd� Zdd� ZdS )�TraversableResourcesLoaderz9
Adapt a loader to provide TraversableResources.
c C �
|| _ d S r r �r
r r
r
r r �
z#TraversableResourcesLoader.__init__c C s t | j��� S r )�DegenerateFilesr �_nativer r
r
r �get_resource_reader s z.TraversableResourcesLoader.get_resource_readerN)r r r r r r r
r
r
r r s r c @ sN e Zd ZdZG dd� dej�Zdd� Zedd� �Z dd � Z
d
d� Zdd
� ZdS )r zg
Adapter for an existing or non-existant resource reader
to provide a degenerate .files().
c @ sB e Zd Zdd� Zdd� Ze ZZdd� Zedd� �Z d
d
d�Z
dS )zDegenerateFiles.Pathc C s t d�S )Nr
)�iter�r
r
r
r �iterdir&