Server : Apache System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64 User : nobody ( 99) PHP Version : 8.1.23 Disable Function : NONE Directory : /opt/alt/python311/lib64/python3.11/importlib/resources/__pycache__/ |
� �,d� � � � 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 Z ej dedefd�� � Zej dedefd�� � Zej dede fd�� � Z ej dee fd�� � Z dS ) r �resource�returnc � � t ��N��FileNotFoundError��selfr s �>/opt/alt/python311/lib64/python3.11/importlib/resources/abc.py� open_resourcezResourceReader.open_resource s � � � �� c � � t �r r r s r � resource_pathzResourceReader.resource_path s � � � �r �pathc � � t �r r �r r s r �is_resourcezResourceReader.is_resource* s � � � �r c � � t �r r �r s r �contentszResourceReader.contents2 s � �9��r N)�__name__� __module__�__qualname__�abc�abstractmethodr r r r �boolr! r �strr$ � r r r r s� � � � � � �N��� �d� �x� � � � �� � �� �d� �t� � � � �� � �� �� �� � � � �� � �� �(�3�-� � � � �� � � r r )� metaclassc �: � e Zd Z ej ded fd�� � Zdefd�Zdde e de fd�Zej defd�� � Z ej defd�� � Zej d edd fd �� � Zdedd fd�Zej dd�� � Zej de fd�� � ZdS )r r c � � d S r r, r# s r �iterdirzTraversable.iterdirB � � � � r c � � | � d� � 5 }|� � � cd d d � � S # 1 swxY w Y d S �N�rb��open�read)r �strms r � read_byteszTraversable.read_bytesH s� � � � �Y�Y�t�_�_� ���9�9�;�;� � � � � � � � � � � � ���� � � � � � s �8�<�<N�encodingc � � | � |�� � 5 }|� � � cd d d � � S # 1 swxY w Y d S )N)r: r5 )r r: r8 s r � read_textzTraversable.read_textO s� � � � �Y�Y��Y� )� )� �T��9�9�;�;� � � � � � � � � � � � ���� � � � � � s �9�=� =c � � d S r r, r# s r �is_dirzTraversable.is_dirV r1 r c � � d S r r, r# s r �is_filezTraversable.is_file\ r1 r �descendantsc � � d S r r, )r rA s r �joinpathzTraversable.joinpathb � � � � r �childc �. � | � |� � S r )rC )r rE s r �__truediv__zTraversable.__truediv__l s � � � �}�}�U�#�#�#r �rc � � d S r r, )r �mode�args�kwargss r r6 zTraversable.openr rD r c � � d S r r, r# s r �namezTraversable.name| r1 r r )rH )r% r&