| Server IP : 68.178.164.50 / Your IP : 216.73.216.142 Web Server : Apache System : Linux 50.164.178.68.host.secureserver.net 5.14.0-611.26.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jan 29 05:24:47 EST 2026 x86_64 User : rathinambschool ( 1053) PHP Version : 8.2.30 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib64/python3.11/importlib/resources/__pycache__/ |
Upload File : |
�
!A?h� � � � d dl Z d dlZd dlZd dlmZmZmZmZmZm Z m
Z
d dlmZmZ d dlm
Z
e
eej e f Zg d�Z G d� de j �� � Ze G d � d
e� � � � Z G d� de� � ZdS )
� N)�Any�BinaryIO�Iterable�Iterator�NoReturn�Text�Optional)�runtime_checkable�Protocol)�Union)�ResourceReader�Traversable�TraversableResourcesc �� � e Zd ZdZej dedefd�� � Zej dedefd�� � Z ej dede
fd�� � Zej dee
fd�� � Zd S )
r
zDAbstract base class for loaders to provide resource reading support.�resource�returnc � � t �)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.
��FileNotFoundError��selfr s �0/usr/lib64/python3.11/importlib/resources/abc.py�
open_resourcezResourceReader.open_resource s
� � �� c � � t �)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.
r r s r �
resource_pathzResourceReader.resource_path s
� � �r �pathc � � t �)zjReturn True if the named 'path' is a resource.
Files are resources, directories are not.
r �r r s r �is_resourcezResourceReader.is_resource* s
� � �r c � � t �)z+Return an iterable of entries in `package`.r �r s r �contentszResourceReader.contents2 s
� � �r N)�__name__�
__module__�__qualname__�__doc__�abc�abstractmethodr r r r �boolr r �strr# � r r r
r
s� � � � � � �N�N��� �d� �x� � � � �� � ��
�d�
�t�
�
�
� ��
� �� �� �� � � � �� � �� �(�3�-� � � � �� � � r r
)� metaclassc �< � e Zd ZdZej ded fd�� � Zdefd�Z dde
e defd�Zej de
fd�� � Zej de
fd �� � Zej d
edd fd�� � Zdedd fd
�Zej dd�� � Zej defd�� � ZdS )r z�
An object with a subset of pathlib.Path methods suitable for
traversing directories and opening files.
Any exceptions that occur when accessing the backing resource
may propagate unaltered.
r c � � dS )z3
Yield Traversable objects in self
Nr, r"