Uname: Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Software: LiteSpeed
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.213.251.212
Your Ip: 18.118.161.96
User: allssztx (535) | Group: allssztx (533)
Safe Mode: OFF
Disable Function:
NONE

name : readers.cpython-313.pyc
�

+}g"���SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKJ	r	 SSK
Jr Sr"SS\	R5r"SS	\	R5r"S
S\	R 5r"SS
\	R5rSrg)�N�)�abc)�onlyc�R�[[RRU55$�N)�iter�collections�OrderedDict�fromkeys)�itemss �B/opt/alt/python313/lib64/python3.13/importlib/resources/readers.py�remove_duplicatesrs����'�'�0�0��7�8�8�c�&�\rSrSrSrSrSrSrg)�
FileReader�c�b�[R"UR5RUlgr)�pathlib�Path�path�parent)�self�loaders  r
�__init__�FileReader.__init__s���L�L����-�4�4��	rc�J�[URRU55$�z[
Return the file system path to prevent
`resources.path()` from creating a temporary
copy.
��strr�joinpath�r�resources  r
�
resource_path�FileReader.resource_path����4�9�9�%�%�h�/�0�0rc��UR$r�r�rs r
�files�FileReader.files����y�y�rr'N)�__name__�
__module__�__qualname__�__firstlineno__rr#r)�__static_attributes__�rr
rrs��5�1�rrc�:^�\rSrSrSrU4SjrSrSrSrU=r	$)�	ZipReader�#c���URRSS5UlURU5(a,URS5u p4U=RUS--
slURUlg)N�\�/�.)�prefix�replace�
is_package�
rpartition�archive)rr�module�_�names     r
r�ZipReader.__init__$s\���m�m�+�+�D�#�6������V�$�$��*�*�3�/�J�A�q��K�K�4�#�:�%�K��~�~��rc�x>�[TU]U5$![an[URS5eSnAff=f�Nr)�super�
open_resource�KeyError�FileNotFoundError�args)rr"�exc�	__class__s   �r
rE�ZipReader.open_resource+s;���	1��7�(��2�2���	1�#�C�H�H�Q�K�0�0��	1�s��
9�4�9c��UR5RU5nUR5=(a UR5$)zN
Workaround for `zipfile.Path.is_file` returning true
for non-existent paths.
)r)r �is_file�exists)rr�targets   r
�is_resource�ZipReader.is_resource1s2��
����&�&�t�,���~�~��3�F�M�M�O�3rc�X�[R"URUR5$r)�zipfilerr=r9r(s r
r)�ZipReader.files9s���|�|�D�L�L�$�+�+�6�6r)r=r9)
r,r-r.r/rrErPr)r0�
__classcell__�rJs@r
r3r3#s���&�1�4�7�7rr3c�|^�\rSrSrSrSrSrSrSrSr	Sr
U4S	jr\S
5r
Sr\S5rS
rSrU=r$)�MultiplexedPath�=z�
Given a series of Traversable objects, implement a merged
version of the interface across all objects. Useful for
namespace packages which may be multihomed at a single
name.
c���[[[[U555UlUR(d
Sn[U5e[
SUR55(d[S5eg)Nz.MultiplexedPath must contain at least one pathc3�@# �UHoR5v� M g7fr��is_dir��.0rs  r
�	<genexpr>�+MultiplexedPath.__init__.<locals>.<genexpr>Js���9�[�T�;�;�=�=�[�s�z)MultiplexedPath only supports directories)�list�map�_ensure_traversabler�_pathsrG�all�NotADirectoryError)r�paths�messages   r
r�MultiplexedPath.__init__EsY���3�2�4E�e�4L�M�N����{�{�F�G�#�G�,�,��9�T�[�[�9�9�9�$�%P�Q�Q�:rc���SUR5n[R"S5n[R"[XS9US9n[
URSU55$)Nc3�R# �UHoR5Ho"v� M M g7fr)�iterdir)r_r�childs   r
r`�*MultiplexedPath.iterdir.<locals>.<genexpr>Ns���N�k�d�|�|�~�e�E�~�E�k�s�%'r@)�keyc3�*# �UH	upUv� M g7frr1)r_r@�locss   r
r`roQs���!@��:�4�$��s�)re�operator�
attrgetter�	itertools�groupby�sortedrc�_follow)r�children�by_name�groupss    r
rm�MultiplexedPath.iterdirMsN��N�d�k�k�N���%�%�f�-���"�"�6�(�#@�g�N���4�<�<�!@��!@�A�Arc��[US35e�Nz is not a file�rGr(s r
�
read_bytes�MultiplexedPath.read_bytesS����4�&�� 7�8�8rc��[US35er~r�rrH�kwargss   r
�	read_text�MultiplexedPath.read_textVr�rc��g)NTr1r(s r
r]�MultiplexedPath.is_dirYs��rc��g)NFr1r(s r
rM�MultiplexedPath.is_file\s��rc�>�[TU]"U6$![Ra URSR"U6s$f=frC)rDr r�TraversalErrorre)r�descendantsrJs  �r
r �MultiplexedPath.joinpath_sH���	9��7�#�[�1�1���!�!�	9��;�;�q�>�*�*�K�8�8�	9�s��0A�Ac��[R"US5up#n[U5$![a& U"U6s$![a [U5ss$f=ff=f)z�
Construct a MultiplexedPath if needed.

If children contains a sole element, return it.
Otherwise, return a MultiplexedPath of the items.
Unless one of the items is not a Directory, then return the first.
�)ru�teer�
ValueErrorrg�next)�clsry�subdirs�one_dir�one_files     r
rx�MultiplexedPath._followgs_��&/�]�]�8�Q�%?�"��(�	&���=� ���	&�
&��G�}�$��%�
&��H�~�%�
&��	&�s)�
'�
A�9�A�A�A�A�Ac��[US35er~rr�s   r
�open�MultiplexedPath.openzr�rc�4�URSR$rC)rer@r(s r
r@�MultiplexedPath.name}s���{�{�1�~�"�"�"rc�R�SRSUR55nSUS3$)Nz, c3�.# �UHnSUS3v� M
 g7f)�'Nr1r^s  r
r`�+MultiplexedPath.__repr__.<locals>.<genexpr>�s���>�+�$�A�d�V�1�+�+�s�zMultiplexedPath(�))�joinre)rrhs  r
�__repr__�MultiplexedPath.__repr__�s)���	�	�>�$�+�+�>�>��!�%���*�*r)re)r,r-r.r/�__doc__rrmr�r�r]rMr �classmethodrxr��propertyr@r�r0rUrVs@r
rXrX=sd����R�B�9�9���9��&��&�$9��#��#�+�+rrXc�r�\rSrSrSr\S\R4Sj5r\S5r	\
S5rSrSr
S	rg
)�NamespaceReader�c�z�S[U5;a[S5e[[URU56Ulg)N�
NamespacePathzInvalid path)rr�rXrc�_resolver)r�namespace_paths  r
r�NamespaceReader.__init__�s1���#�n�"5�5��^�,�,�#�S�����%G�H��	r�returnc�:�SURU55unU$)z�
Given an item from a namespace path, resolve it to a Traversable.

path_str might be a directory on the filesystem or a path to a
zipfile plus the path within the zipfile, e.g. ``/foo/bar`` or
``/foo/baz.zip/inner_dir`` or ``foo\baz.zip\inner_dir\sub``.
c3�R# �UHoR5(dMUv� M g7frr\)r_�cands  r
r`�+NamespaceReader._resolve.<locals>.<genexpr>�s���S�#A�4�[�[�]�$�$�#A�s�'�	')�_candidate_paths)r��path_str�dirs   r
r��NamespaceReader._resolve�s!��T�3�#7�#7��#A�S����
rc#�r# �[R"U5v� URU5Shv�N gN7fr)rr�_resolve_zip_path)r�r�s  r
r�� NamespaceReader._candidate_paths�s(����l�l�8�$�$��(�(��2�2�2�s�-7�5�7c#�# �[[[R"SU555H�n[R
"[[[[5 XR5SRSS5S-n[R"USUR5URS55v� SSS5 M� g!,(df   M�=f7f)Nz[\\/]r6r7)�reversedrb�re�finditer�
contextlib�suppressrG�IsADirectoryErrorrg�PermissionError�endr:rSr�start�lstrip)r��match�inners   r
r��!NamespaceReader._resolve_zip_path�s�����d�2�;�;�x��#B�C�D�E��$�$�!�!�"��	�!�����/�7�7��c�B�S�H���l�l�8�O�e�k�k�m�#<�e�l�l�3�>O�P�P���E���s�AC�AC�7
C�
C	�Cc�J�[URRU55$rrr!s  r
r#�NamespaceReader.resource_path�r%rc��UR$rr'r(s r
r)�NamespaceReader.files�r+rr'N)r,r-r.r/rr�r�Traversabler�r��staticmethodr�r#r)r0r1rr
r�r��s[��I�
�	�3�?�?�	��	��3��3��	Q��	Q�1�rr�c��[U[5(dU$[R"S[SS9 [
R"U5$)z_
Convert deprecated string arguments to traversables (pathlib.Path).

Remove with Python 3.15.
z<String arguments are deprecated. Pass a Traversable instead.r�)�
stacklevel)�
isinstancer�warnings�warn�DeprecationWarningrrr's r
rdrd�s<���d�C� � ����M�M�F�����<�<���r)r	r�rurrsr�r�rS�r�
_itertoolsrr�TraversableResourcesrr3r�rXr�rdr1rr
�<module>r�sw�������	�����9�
��)�)�
� 7��(�(�7�4F+�c�o�o�F+�R,�c�.�.�,�^r
© 2025 GrazzMean-Shell