Your IP : 3.21.113.43


Current Path : /opt/alt/python313/lib64/python3.13/importlib/resources/__pycache__/
Upload File :
Current File : //opt/alt/python313/lib64/python3.13/importlib/resources/__pycache__/_adapters.cpython-313.pyc

�

+}g���t�SSKJr SSKJr SSKJr "SS5r"SS5rSS	jr"S
S5r	Sr
g
)�)�suppress)�
TextIOWrapper�)�abcc�,�\rSrSrSrS4SjrSrSrg)�SpecLoaderAdapter�z6
Adapt a package spec to adapt the underlying loader.
c��UR$�N)�loader��specs �D/opt/alt/python313/lib64/python3.13/importlib/resources/_adapters.py�<lambda>�SpecLoaderAdapter.<lambda>s��$�+�+�c�*�XlU"U5Ulgr)rr)�selfr�adapters   r�__init__�SpecLoaderAdapter.__init__s���	��d�m��rc�.�[URU5$r)�getattrr�r�names  r�__getattr__�SpecLoaderAdapter.__getattr__s���t�y�y�$�'�'r)rrN)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rr�__static_attributes__�rrrrs���&>�$�(rrc�$�\rSrSrSrSrSrSrg)�TraversableResourcesLoader�z1
Adapt a loader to provide TraversableResources.
c��Xlgrr
�rrs  rr�#TraversableResourcesLoader.__init__����	rc�H�[UR5R5$r)�CompatibilityFilesr�_nativers  r�get_resource_reader�.TraversableResourcesLoader.get_resource_readers��!�$�)�)�,�4�4�6�6rr
N)rrr r!r"rr/r#r$rrr&r&s����7rr&c�Z�US:Xa[U/UQ70UD6$US:XaU$[SUS35e)N�r�rbzInvalid mode value 'z"', only 'r' and 'rb' are supported)r�
ValueError)�file�mode�args�kwargss    r�_io_wrapperr9 s@���s�{��T�3�D�3�F�3�3�	
�����
�+�D�6�1S�T�
U�Urc��\rSrSrSr"SS\R5r"SS\R5r"SS\R5r	S	r
\S
5rSr
SrS
rSrg)r-�(z^
Adapter for an existing or non-existent resource reader
to provide a compatibility .files().
c�N�\rSrSrSrSrSrSr\rSr	\
S5rSSjrS	r
g
)�CompatibilityFiles.SpecPath�.zS
Path tied to a module spec.
Can be read and exposes the resource reader children.
c��XlX lgr)�_spec�_reader)rr�readers   rr�$CompatibilityFiles.SpecPath.__init__4s���J�!�Lrc�^�TR(d[S5$[U4SjTRR555$)Nr$c3�d># �UH%n[RTRU5v� M' g7fr)r-�	ChildPathrA)�.0�pathrs  �r�	<genexpr>�6CompatibilityFiles.SpecPath.iterdir.<locals>.<genexpr>;s,�����3�D�#�,�,�T�\�\�4�@�@�3�s�-0)rA�iter�contents�rs`r�iterdir�#CompatibilityFiles.SpecPath.iterdir8s:����<�<��B�x���� �L�L�1�1�3���
rc��g�NFr$rMs r�is_file�#CompatibilityFiles.SpecPath.is_file@���rc��UR(d[RU5$[RURU5$r)rAr-�
OrphanPathrF�r�others  r�joinpath�$CompatibilityFiles.SpecPath.joinpathEs1���<�<�)�4�4�U�;�;�%�/�/����e�D�Drc�.�URR$r)r@rrMs rr� CompatibilityFiles.SpecPath.nameJs���:�:�?�?�"rc�T�[URRS5U/UQ70UD6$r)r9rA�
open_resource�rr6r7r8s    r�open� CompatibilityFiles.SpecPath.openNs)���t�|�|�9�9�$�?��W��W�PV�W�Wr)rAr@N�r2�rrr r!r"rrNrR�is_dirrY�propertyrr`r#r$rr�SpecPathr=.s=��	�
	"�	�	���	E�

�	#�
�	#�	Xrrfc�P�\rSrSrSrSrSrSrSrSr	\
S5rSS	jrS
r
g)
�CompatibilityFiles.ChildPath�Qz_
Path tied to a resource reader child.
Can be read but doesn't expose any meaningful children.
c��XlX lgr)rA�_name)rrBrs   rr�%CompatibilityFiles.ChildPath.__init__Ws��!�L��Jrc��[S5$�Nr$�rKrMs rrN�$CompatibilityFiles.ChildPath.iterdir[�����8�Orc�L�URRUR5$r)rA�is_resourcerrMs rrR�$CompatibilityFiles.ChildPath.is_file^s���<�<�+�+�D�I�I�6�6rc�,�UR5(+$r)rRrMs rrd�#CompatibilityFiles.ChildPath.is_diras���|�|�~�%�%rc�B�[RURU5$r)r-rVrrWs  rrY�%CompatibilityFiles.ChildPath.joinpathds��%�0�0����E�B�Brc��UR$r)rkrMs rr�!CompatibilityFiles.ChildPath.namegs���:�:�rc�h�[URRUR5U/UQ70UD6$r)r9rAr^rr_s    rr`�!CompatibilityFiles.ChildPath.openks7������*�*�4�9�9�5�t��>B��FL��
r)rkrANrbrcr$rrrFrhQs:��	�
	�	�	7�	&�	C�
�	�
�	�	rrFc�N�\rSrSrSrSrSrSr\rSr	\
S5rSSjrS	r
g
)�CompatibilityFiles.OrphanPath�pzv
Orphan path, not tied to a module spec or resource reader.
Can't be read and doesn't expose any meaningful children.
c�D�[U5S:a[S5eXlg)Nrz/Need at least one path part to construct a path)�lenr4�_path)r�
path_partss  rr�&CompatibilityFiles.OrphanPath.__init__vs���:���"� �!R�S�S�#�Jrc��[S5$rnrorMs rrN�%CompatibilityFiles.OrphanPath.iterdir{rqrc��grQr$rMs rrR�%CompatibilityFiles.OrphanPath.is_file~rTrc�F�[R"/URQUP76$r)r-rVr�rWs  rrY�&CompatibilityFiles.OrphanPath.joinpath�s��%�0�0�D�$�*�*�D�e�D�Drc� �URS$)N����r�rMs rr�"CompatibilityFiles.OrphanPath.name�s���:�:�b�>�!rc��[S5e)NzCan't open orphan path)�FileNotFoundErrorr_s    rr`�"CompatibilityFiles.OrphanPath.open�s��#�$<�=�=rr�Nrbrcr$rrrVr~ps<��	�
	$�
	�	���	E�
�	"�
�	"�	>rrVc��Xlgrr
r)s  rr�CompatibilityFiles.__init__�r+rc���[[5 URRR	URR
5sSSS5 $!,(df   g=fr)r�AttributeErrorrrr/rrMs rrA�CompatibilityFiles._reader�s6��
�n�
%��9�9�#�#�7�7��	�	���G�&�
%�
%�s�9A�
A!c�D�URn[US5(aU$U$)z2
Return the native reader if it supports files().
�files)rA�hasattr)rrBs  rr.�CompatibilityFiles._native�s$������ ���1�1�v�;�t�;rc�.�[URU5$r)rrA)r�attrs  rr�CompatibilityFiles.__getattr__�s���t�|�|�T�*�*rc�V�[RURUR5$r)r-rfrrArMs rr��CompatibilityFiles.files�s��!�*�*�4�9�9�d�l�l�C�Crr
N)rrr r!r"r�TraversablerfrFrVrrerAr.rr�r#r$rrr-r-(se���
!X�3�?�?�!X�F�C�O�O��>>�S�_�_�>�:��H��H�<�+�Drr-c�6�[UR[5$)zT
Construct a package spec with traversable compatibility
on the spec/loader/reader.
)r�__spec__r&)�packages r�	wrap_specr��s��
�W�-�-�/I�J�JrNrb)�
contextlibr�ior�rrr&r9r-r�r$rr�<module>r�s=�����
(�
(�	7�	7�V�xD�xD�vKr

?>