Your IP : 3.139.86.58


Current Path : /opt/alt/python312/lib64/python3.12/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/__pycache__/posixpath.cpython-312.opt-2.pyc

�

�Q�f�C��^�	dZdZdZdZdZdZdZdZddlZddl	Z	ddl
Z
ddlZddl�gd	�Zd
�Z
d�Zd�Zd
�Zd�Zd�Zej&j(e_d�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zdadad�Z	ddl m!Z"d�Z$dd�d�Z%d�Z&e	jNd k(Z(d#d!�Z)d"�Z*y#e#$rd�Z"Y�-wxYw)$�.�..�/�:z
/bin:/usr/binNz	/dev/null�)�*)(�normcase�isabs�join�
splitdrive�	splitroot�split�splitext�basename�dirname�commonprefix�getsize�getmtime�getatime�getctime�islink�exists�lexists�isdir�isfile�ismount�
expanduser�
expandvars�normpath�abspath�samefile�sameopenfile�samestat�curdir�pardir�sep�pathsep�defpath�altsep�extsep�devnull�realpath�supports_unicode_filenames�relpath�
commonpath�
isjunctionc�&�t|t�ryy)N�/r)�
isinstance�bytes��paths �0/opt/alt/python312/lib64/python3.12/posixpath.py�_get_sepr7)s���$�����c�.�	tj|�S�N��os�fspath)�ss r6rr4s��@�
�9�9�Q�<�r8c�f�	tj|�}t|�}|j|�Sr:)r<r=r7�
startswith)r>r%s  r6r	r	<s*��)�
�	�	�!��A�
�1�+�C��<�<���r8c�l�	tj|�}t|�}|}	|s|dd|zttj|�D]7}|j	|�r|}�|r|j|�r||z
}�0|||zz
}�9	|S#tttf$rtjd|g|����wxYw)Nrr
)r<r=r7�mapr@�endswith�	TypeError�AttributeError�BytesWarning�genericpath�_check_arg_types)�a�pr%r5�bs     r6r
r
Gs����	�	�	�!��A�
�1�+�C��D�����!�H�s�N��R�Y�Y��"�A��|�|�C� ����T�]�]�3�/���	����a����
#��K��
�~�|�4���$�$�V�Q�3��3�
��s�AB�-B3c���	tj|�}t|�}|j|�dz}|d|||d}}|r"||t	|�zk7r|j|�}||fS�N��r<r=r7�rfind�len�rstrip)rJr%�i�head�tails     r6r
r
dso��D�
�	�	�!��A�
�1�+�C�	�����q��A��2�A���!�"��$�D����C��I�
�%��{�{�3�����:�r8c��tj|�}t|t�rd}d}nd}d}t	j
||d|�S)Nr1�.rr)r<r=r2r3rG�	_splitext)rJr%r)s   r6rrusD��
�	�	�!��A��!�U����������� � ��C��v�6�6r8c�<�	tj|�}|dd|fS�Nrr;)rJs r6rr�s#���
�	�	�!��A��R�a�5�!�8�Or8c��	tj|�}t|t�rd}d}nd}d}|dd|k7r|||fS|dd|k7s|dd|k(r|||ddfS||dd|ddfS)Nr1r8r�rN��)r<r=r2r3)rJr%�emptys   r6rr�s����	�	�	�!��A��!�U������������!�u��|��e�Q���	
�1�Q��3��!�A�a�&�C�-��c�1�Q�R�5� � ��a���e�Q�q�r�U�"�"r8c�v�	tj|�}t|�}|j|�dz}||dSrM)r<r=r7rP)rJr%rSs   r6rr�s8��3�
�	�	�!��A�
�1�+�C�	�����q��A��Q�R�5�Lr8c���	tj|�}t|�}|j|�dz}|d|}|r"||t	|�zk7r|j|�}|SrMrO)rJr%rSrTs    r6rr�s]��7�
�	�	�!��A�
�1�+�C�	�����q��A��R�a�5�D����C��I�
�%��{�{�3����Kr8c�0�	tj|�y)NFr;r4s r6r/r/�s��3��I�I�d�O�r8c�\�		tj|�y#ttf$rYywxYw)NFT)r<�lstat�OSError�
ValueErrorr4s r6rr�s3��M��
�������
�Z� ����s��+�+c��		tj|�}tj|j�rytj|�}t|t�r
t|d�}nt|d�}t|�}	tj|�}|j}|j}||k7ry|j}|j}||k(ryy#t
tf$rYywxYw#t
tf$rYywxYw)NF�..rT)r<rd�stat�S_ISLNK�st_modererfr=r2r3r
r+�st_dev�st_ino)r5�s1�parent�s2�dev1�dev2�ino1�ino2s        r6rr�s���.��
�X�X�d�^���<�<��
�
�#��
�9�9�T�?�D��$����d�E�"���d�D�!��
�f�
�F��
�X�X�f�
���9�9�D�
�9�9�D��t�|��
�9�9�D�
�9�9�D��t�|����7
�Z� ����� 
�Z� ����s#�C�C)�C&�%C&�)C;�:C;c�t�	tj|�}t|t�rd}nd}|j	|�s|St|�}|j
|d�}|dkrt|�}|dk(rZdtjvr4	ddl	}	|jtj��j}natjd}nM	ddl	}|d|}t|t�rtj|�}	|j!|�}|j}|�t"j$dk(r|St|t�rtj&|�}d}nd}|j)|�}|||dzxs|S#t$r|cYSwxYw#t$r|cYSwxYw#t$r|cYSwxYw#t$r|cYSwxYw)	N�~�~rNr�HOME�vxworksr1r)r<r=r2r3r@r7�findrQ�environ�pwd�ImportError�getpwuid�getuid�pw_dir�KeyError�fsdecode�getpwnam�sys�platform�fsencoderR)	r5�tilder%rSr|�userhome�name�pwent�roots	         r6rrs����
�9�9�T�?�D��$��������?�?�5�!���
�4�.�C��	�	�#�q��A��1�u���I���A�v�����#�
��
��<�<��	�	��4�;�;���z�z�&�)�H�	���A�a�y���d�E�"��;�;�t�$�D�	��L�L��&�E�
�<�<����C�L�L�I�5����$����;�;�x�(���������t�$�H��t�A�B�x��(�D�(��I�
���
��
�
���
���	��K�	���	��K�	�sH�E6�	-F�F�;F)�6F�F�F�F�F&�%F&�)F7�6F7c�.�	tj|�}t|t�rRd|vr|Sts ddl}|j
d|j�atj}d}d}ttdd�}nPd|vr|Sts ddl}|j
d|j�a
tj}d	}d
}tj}d}	|||�}|s	|S|jd�\}}|jd�}	|	j|�r|	j|�r|	dd}		|�:tj tjtj"|	��}
n||	}
||d}|d||
z}t%|�}||z
}��#t&$r|}Y�wxYw)
N�$rs\$(\w+|\{[^}]*\})�{�}�environb�$z\$(\w+|\{[^}]*\})�{�}rN���)r<r=r2r3�	_varprogb�re�compile�ASCII�search�getattr�_varprogr{�span�groupr@rCr�r�rQr�)r5r�r��start�endr{rS�m�jr��valuerUs            r6rr@s����
�9�9�T�?�D��$����t���K����
�
�#8�"�(�(�C�I��!�!�������"�j�$�/���d�?��K����z�z�"6����A�H����������*�*��	�A�
��4��O����"�K�!�v�v�a�y���1��w�w�q�z���?�?�5�!�d�m�m�C�&8���"�:�D�	������B�J�J�r�{�{�4�/@�$A�B����
�����8�D����8�e�#�D��D�	�A��D�L�D�'���	��A�	�s�'AF�F�F)�_path_normpathc��	tj|�}t|t�r	d}d}d}d}nd}d}d}d}||k(r|St	|�\}}}|j|�}g}|D]A}	|	||fvr�
|	|k7s|s|r
|r|d	|k(r|j
|	��/|s�2|j��C|}||j|�z}|xs|S)
Nr1r8rWrhrr\rrr�)	r<r=r2r3rr
�append�popr
)
r5r%r_�dot�dotdot�_�initial_slashes�comps�	new_comps�comps
          r6rrys���>��y�y�����d�E�"��C��E��C��F��C��E��C��F��5�=��J�#,�T�?� ��?�D��
�
�3����	��D���s�|�#������y��	�"�
�� 7�� � ��&���
�
���������%��0���{�s�r8c���	tj|�}t|�sEt|t�rtj
�}ntj�}t||�}t|�Sr:)	r<r=r	r2r3�getcwdb�getcwdr
r)r5�cwds  r6rr�sN��"�
�9�9�T�?�D���;��d�E�"��*�*�,�C��)�)�+�C��C�����D�>�r8F)�strictc�l�	tj|�}t|dd||i�\}}t|�SrZ)r<r=�
_joinrealpathr)�filenamer�r5�oks    r6r+r+�s9��+��y�y��"�H��X�b�q�\�8�V�R�@�H�D�"��4�=�r8c��t|t�rd}d}d}nd}d}d}t|�r|dd}|}|�r|j|�\}}}|r||k(r� ||k(r&|r!t	|�\}}||k(rt|||�}n|}�Kt||�}		t
j|	�}
tj|
j�}|s|	}��|	|vr.||	}|���|rt
j|	�nt|	|�dfSd||	<t|t
j|	�||�\}}|st||�dfS|||	<|r��|d	fS#t$r|r�d}Y��wxYw)
Nr1rWrhrrrrNFT)r2r3r	�	partitionr
r
r<rdrirjrkrer��readlink)
r5�restr��seenr%r#r$r�r��newpath�st�is_linkr�s
             r6r�r��s����$����������������T�{��A�B�x����
����s�+�
��a���t�v�~���6�>��"�4�[�
��d��6�>���f�f�5�D�����t�T�"��	/����'�"�B��l�l�2�:�:�.�G���D���d�?���=�D��������� ��G�T�*�E�1�1���W�
� ��r�{�{�7�';�V�T�J���b����d�#�U�*�*���W�
�Y�\��:���;�	����G�	�s�D9�9E
�	E
�darwinc�R�	|std��tj|�}t|t�rd}d}d}nd}d}d}|�|}ntj|�}	t|�j
|�D�cgc]}|s�|��	}}t|�j
|�D�cgc]}|s�|��	}}tt||g��}|gt|�|z
z||dz}	|	s|St|	�Scc}wcc}w#ttttf$rtjd||��wxYw)	Nzno path specifiedrWr1rhrrrr-)rfr<r=r2r3rr
rQrr
rDrErF�DeprecationWarningrGrH)
r5r�r#r%r$�x�
start_list�	path_listrS�rel_lists
          r6r-r-�s3��-���,�-�-�
�9�9�T�?�D��$����������������}����	�	�%� ���!(���!5�!5�c�!:�@�!:�A�a�a�!:�
�@� '��
� 3� 3�C� 8�>� 8�1�A�Q� 8�	�>���j�)�4�5�6���8�s�:��q�0�1�I�a�b�M�A����M��X����A��>��
�~�|�5G�H���$�$�Y��e�<�
��s<�C4�8C*�C*�C4�"C/�*C/�.3C4�"C4�*
C4�42D&c	���	|std��tttj|��}t|dt�rd�d}nd�d}	|D�cgc]}|j����}}	t�fd�|D��\}|D��cgc]}|D�cgc]
}|s�||k7s�|��c}��}}}t|�}t|�}|}	t|�D]\}
}|||
k7s�|d|
}	n|r�n�dd}|�j|	�zScc}w#t$r
td�d�wxYwcc}wcc}}w#ttf$rtj d	g|����wxYw)
Nz%commonpath() arg is an empty sequencerr1rWrrc3�.�K�|]}|dd�k(���y�wrM�)�.0rJr%s  �r6�	<genexpr>zcommonpath.<locals>.<genexpr>,s�����5�u�!��2�A��#��u�s�z%Can't mix absolute and relative pathsr.)rf�tuplerBr<r=r2r3r
�set�min�max�	enumerater
rDrErGrH)
�pathsr#r5�split_pathsr	r>�crnrp�commonrS�prefixr%s
            @r6r.r.sv���N���@�A�A��#�b�i�i��'�(�E��%��(�E�"����������38�9�5�4�t�z�z�#��5��9�	P��5�u�5�5�F�E�EP�P�K�q�1�:�1�a��a�6�k��1�:�K��P�
��
��
��
�����b�M�D�A�q��B�q�E�z��B�Q����"�
��3�r��7�������(�(�(��#:���	P��D�E�4�O�	P��;��P��
�~�&���$�$�\�:�E�:�
��sl�D-�D�,D-�/D	�D-�
	D'�D"�D"�!D"�%D'�*4D-�$D-�D-�	D�D-�"D'�'D-�-'Er:)+r#r$r)r%r&r'r(r*r<r�rirG�__all__r7rr	r
r
rrX�__doc__rrrrr/rrrr�r�r�posixr�rr}rr+r�r�r,r-r.r�r8r6�<module>r�s��
�

��	
��	��	��

��
��	
��
��	�
����'������:	�"7��(�(�0�0���
�#�>�����V6)�z���	�.�j �0�D	�"'��<�~"�l�l�h�6��!�R#��E����s�8B!�!B,�+B,

?>