HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.60.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 5 05:00:59 EST 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //var/opt/nydus/ops/importlib_resources/__pycache__/abc.cpython-39.pyc
a

�,�h5�@s�ddlmZddlZddlmZmZmZmZzddlm	Z	m
Z
mZWneyVYn0Gdd�de�Z
eGdd	�d	e��ZGd
d�de
�ZdS)�)�absolute_importN�)�ABC�FileNotFoundError�runtime_checkable�Protocol)�BinaryIO�Iterable�Textc@sHeZdZdZejdd��Zejdd��Zejdd��Zejdd	��Z	d
S)�ResourceReaderzDAbstract base class for loaders to provide resource reading support.cCst�dS)z�Return an opened, file-like object for binary reading.

        The 'resource' argument is expected to represent only a file name.
        If the resource cannot be found, FileNotFoundError is raised.
        N�r��self�resource�r�H/opt/nydus/tmp/pip-target-wkfpz8uv/lib/python/importlib_resources/abc.py�
open_resourceszResourceReader.open_resourcecCst�dS)z�Return the file system path to the specified resource.

        The 'resource' argument is expected to represent only a file name.
        If the resource does not exist on the file system, raise
        FileNotFoundError.
        Nrr
rrr�
resource_pathszResourceReader.resource_pathcCst�dS)zjReturn True if the named 'path' is a resource.

        Files are resources, directories are not.
        Nr�r�pathrrr�is_resource,szResourceReader.is_resourcecCst�dS)z+Return an iterable of entries in `package`.Nr�rrrr�contents5szResourceReader.contentsN)
�__name__�
__module__�__qualname__�__doc__�abc�abstractmethodrrrrrrrrrs



rc@s�eZdZdZejdd��Zejdd��Zejddd��Zejd	d
��Z	ejdd��Z
ejd
d��Zejdd��Zejddd��Z
ejdd��ZdS)�Traversablezt
    An object with a subset of pathlib.Path methods suitable for
    traversing directories and opening files.
    cCsdS)z3
        Yield Traversable objects in self
        Nrrrrr�iterdirCszTraversable.iterdircCsdS�z0
        Read contents of self as bytes
        Nrrrrr�
read_bytesIszTraversable.read_bytesNcCsdSr!r)r�encodingrrr�	read_textOszTraversable.read_textcCsdS)z.
        Return True if self is a dir
        Nrrrrr�is_dirUszTraversable.is_dircCsdS)z/
        Return True if self is a file
        Nrrrrr�is_file[szTraversable.is_filecCsdS�z2
        Return Traversable child in self
        Nr�r�childrrr�joinpathaszTraversable.joinpathcCsdSr'rr(rrr�__truediv__gszTraversable.__truediv__�rcOsdS)z�
        mode may be 'r' or 'rb' to open as text or binary. Return a handle
        suitable for reading (same as pathlib.Path.open).

        When opening as text, accepts encoding parameters such as those
        accepted by io.TextIOWrapper.
        Nr)r�mode�args�kwargsrrr�openmszTraversable.opencCsdS)zM
        The base name of this object without any parent references.
        Nrrrrr�namewszTraversable.name)N)r,)rrrrrrr r"r$r%r&r*r+r0�abstractpropertyr1rrrrr<s&





	rc@s:eZdZejdd��Zdd�Zdd�Zdd�Zd	d
�Z	dS)�TraversableResourcescCsdS)z3Return a Traversable object for the loaded package.Nrrrrr�files�szTraversableResources.filescCs|���|��d�S)N�rb)r4r*r0r
rrrr�sz"TraversableResources.open_resourcecCst|��dS�Nrr
rrrr�sz"TraversableResources.resource_pathcCs|���|���Sr6)r4r*�isfilerrrrr�sz TraversableResources.is_resourcecCsdd�|����D�S)Ncss|]}|jVqdSr6)r1)�.0�itemrrr�	<genexpr>��z0TraversableResources.contents.<locals>.<genexpr>)r4r rrrrr�szTraversableResources.contentsN)
rrrrrr4rrrrrrrrr3s
r3)�
__future__rrZ_compatrrrr�typingrr	r
�ImportErrorrrr3rrrr�<module>s.B