Your IP : 3.131.13.161


Current Path : /opt/alt/python313/lib64/python3.13/__pycache__/
Upload File :
Current File : //opt/alt/python313/lib64/python3.13/__pycache__/posixpath.cpython-313.opt-1.pyc

�

+}gF���SrSrSrSrSrSrSrSrSrSSK	r	SSK
r
SSKrSSKrSSK
r
SS	K
7 /S
QrSrSrS
rSrSrSr\
R*R\lSrSSKJr SrSrSrSrSqSq Sr!SSKJ"r# Sr$SS.Sjr%\RLS:Hr'S"S jr(S!r)g!\a SrNGf=f!\a Sr#N<f=f)#a�Common operations on Posix pathnames.

Instead of importing this module directly, import os and refer to
this module as os.path.  The "os.path" name is an alias for this
module on Posix systems; on other systems (e.g. Windows),
os.path provides the same operations in a manner specific to that
platform, and is an alias to another module (e.g. ntpath).

Some of this can actually be useful on non-Posix systems too, e.g.
for manipulation of the pathname component of URLs.
�.�..�/�: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�
isjunction�
isdevdrivec�0�[U[5(agg)N�/r)�
isinstance�bytes��paths �0/opt/alt/python313/lib64/python3.13/posixpath.py�_get_sepr8*s���$������c�.�[R"U5$)z6Normalize case of pathname.  Has no effect under Posix��os�fspath)�ss r7rr5s��
�9�9�Q�<�r9c�f�[R"U5n[U5nURU5$)zTest whether a path is absolute)r<r=r8�
startswith)r>r%s  r7r	r	=s'��
�	�	�!��A�
�1�+�C��<�<���r9c�x�[R"U5n[U5nUnUH]n[R"U5nURU5(dU(dUnM:UR	U5(aX4-
nMVX2U--
nM_ U$![
[[4a [R"SU/UQ76 ef=f)z�Join two or more pathname components, inserting '/' as needed.
If any component is an absolute path, all previous path components
will be discarded.  An empty last part will result in a path that
ends with a separator.r
)
r<r=r8r@�endswith�	TypeError�AttributeError�BytesWarning�genericpath�_check_arg_types)�a�pr%r6�bs     r7r
r
Hs���
	�	�	�!��A�
�1�+�C��D���A��	�	�!��A��|�|�C� � �������s�#�#��	���a������K��
�~�|�4���$�$�V�Q�3��3�
��s�A#B
�
/B9c���[R"U5n[U5nURU5S-nUSUXSpCU(a"X1[	U5-:waURU5nX44$)z|Split a pathname.  Returns tuple "(head, tail)" where "tail" is
everything after the final slash.  Either part may be empty.�N�r<r=r8�rfind�len�rstrip)rIr%�i�head�tails     r7r
r
dsc��	�	�	�!��A�
�1�+�C�	�����q��A��2�A���"��$���C��I�
�%��{�{�3����:�r9c��[R"U5n[U[5(aSnSnOSnSn[R
"XSU5$)Nr2�.rr)r<r=r3r4rF�	_splitext)rIr%r)s   r7rrusE��
�	�	�!��A��!�U������������ � ���v�6�6r9c�<�[R"U5nUSSU4$)zFSplit a pathname into drive and path. On Posix, drive is always
empty.Nrr;)rIs r7rr�s ��	�	�	�!��A��R�a�5�!�8�Or9)�_path_splitroot_exc���[R"U5n[U[5(aSnSnOSnSnUSSU:waX"U4$USSU:wd	USSU:XaX!USS4$X SSUSS4$)	zWSplit a pathname into drive, root and tail.

The tail contains anything after the root.r2r9r�NrL��)r<r=r3r4)rIr%�emptys   r7rr�s���
�I�I�a�L���a�����C��E��C��E��R�a�5�C�<���?�"�
�q��V�s�]�a��!�f��m��q���u�$�$��B�Q�%��1�2��&�&r9c�t�[R"U5n[U5nURU5S-nXS$)z)Returns the final component of a pathnamerLN)r<r=r8rN)rIr%rQs   r7rr�s3��
�	�	�!��A�
�1�+�C�	�����q��A��R�5�Lr9c���[R"U5n[U5nURU5S-nUSUnU(a"X1[	U5-:waURU5nU$)z-Returns the directory component of a pathnamerLNrM)rIr%rQrRs    r7rr�sX��
�	�	�!��A�
�1�+�C�	�����q��A��R�a�5�D���C��I�
�%��{�{�3����Kr9c�X�[R"U5n[R"UR5(ag[R"U5n[U[5(a
[US5nO[US5n[R"U5nURUR:g=(d URUR:H$![
[4a gf=f![
a6 [U5n[R"U5nN}![
a gf=ff=f)z$Test whether a path is a mount pointF�..r)r<�lstat�stat�S_ISLNK�st_mode�OSError�
ValueErrorr=r3r4r
r+�st_dev�st_ino)r6�s1�parent�s2s    r7rr�s����
�X�X�d�^���<�<��
�
�#�#��$��9�9�T�?�D��$�����d�E�"���d�D�!���
�X�X�f�
���9�9��	�	�!�;�R�Y�Y�"�)�)�%;�;��/
�Z� ��������&�!��	����&�!�B���	��	��	�s;�C�C)�C&�%C&�)D)�?D�
D%�!D)�$D%�%D)c��[R"U5n[U[5(aSnOSnUR	U5(dU$[U5nUR
US5nUS:a[U5nUS:Xa]S[R;a5SSK	nUR[R"55RnOg[RSnOSSSK	nUSUn[U[5(a[R"U5nUR!U5nURnUc["R$S:XaU$[U[5(a[R&"U5nUR)U5nXPUS-=(d U$![a Us$f=f![a Us$f=f![a Us$f=f![a Us$f=f)zKExpand ~ and ~user constructions.  If user or $HOME is unknown,
do nothing.�~�~rLr�HOMEN�vxworks)r<r=r3r4r@r8�findrO�environ�pwd�ImportError�getpwuid�getuid�pw_dir�KeyError�fsdecode�getpwnam�sys�platform�fsencoderP)r6�tilder%rQrt�userhome�name�pwents        r7rr�s����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�(�����s�#�H��A�B�x��'�C�'��C�
���
��
�
���
���	��K�	���	��K�	�sH�F�.F$�F6�G�F!� F!�$F3�2F3�6G�G�G�Gc�r�[R"U5n[U[5(aYSU;aU$[(d SSKnUR
SUR5q[RnSnSn[[SS5nOWSU;aU$[(d SSKnUR
S	UR5q
[RnS
nSn[RnSnU"X5nU(dU$URS5uphURS5n	U	RU5(aU	RU5(aU	SS
n	Uc<[R "[R[R""U	55n
OXYn
XSnUSUU
-n[%U5nX-
nM�![&a UnNf=f)zVExpand shell variables of form $var and ${var}.  Unknown variables
are left unchanged.�$rNs\$(\w+|\{[^}]*\})�{�}�environb�$z\$(\w+|\{[^}]*\})�{�}rL���)r<r=r3r4�	_varprogb�re�compile�ASCII�search�getattr�_varprogrs�span�groupr@rBr~rzrOry)r6r�r��start�endrsrQ�m�jr��valuerSs            r7rr"s����9�9�T�?�D��$�����t���K��y���
�
�#8�"�(�(�C�I��!�!�������"�j�$�/���d�?��K��x���z�z�"6����A�H����������*�*��	�A�
��4�O����"�K�!�v�v�a�y����w�w�q�z���?�?�5�!�!�d�m�m�C�&8�&8���"�:�D�	������B�J�J�r�{�{�4�/@�$A�B���
����8�D����8�e�#�D��D�	�A��L�D�'���	��A�	�s�AF'�'F6�5F6)�_path_normpathc���[R"U5n[U[5(aSnSnSnOSnSnSnU(dU$[	U5upEnURU5n/nUH`nU(aX�:XaMX�:wdU(dU(aU(aUSU:XaUR
U5 MGU(dMPUR5 Mb UnXQRU5-nU=(d U$)z0Normalize path, eliminating double slashes, etc.r2rUrarrrr�)	r<r=r3r4rr
�append�popr
)	r6r%�dot�dotdot�_�initial_slashes�comps�	new_comps�comps	         r7rr[s����y�y�����d�E�"�"��C��C��F��C��C��F���J�#,�T�?� ��D��
�
�3����	��D��4�;�����y��	�"�
�� 7�� � ��&����
�
��������%��0���{�s�r9c�D�[R"U5n[U[5(a6UR	S5(d[[R"5U5nO5UR	S5(d[[R"5U5n[U5$)zReturn an absolute path.r2r)	r<r=r3r4r@r
�getcwdb�getcwdrr5s r7rrxsi��
�9�9�T�?�D��$�������t�$�$���
�
��d�+�D�����s�#�#���	�	��T�*�D��D�>�r9F)�strictc�:�[R"U5n[U[5(aSnSnSn[RnOSnSnSn[R
nUR
U5SSS2n[U5nURU5(aUOU"5n0n	U(Ga�UR5n
U
cX�UR5'M/US	-nU
(aX�:XaMBX�:XaUSURU5=(d UnMfX�:XaX�-nOX�-U
-n[R"U5Rn[R"U5(dkU(a_U(aX[R"U5(d=[!["R$[R&"["R$5U5eUnGMX�;a,X�nUbGM-U(a[R"U5 UnGMO[R("U5n
SX�'U
RU5(aUnUR+U5 UR+S5 U
R
U5SSS2nUR-U5 U[U5-
nU(aGM�U$![ a U(aeUnGM�f=f)
zlReturn the canonical path of the specified filename, eliminating any
symbolic links encountered in the path.r2rUrarrrNr�rL)r<r=r3r4r�r�r
rOr@r��rindexrbrercrd�S_ISDIRrf�errno�ENOTDIR�strerror�readlinkr��extend)�filenamer�r%r#r$r��rest�
part_countr6�seenr��newpathre�target�target_partss               r7r+r+�sC���y�y��"�H��(�E�"�"����������������������>�>�#��t��t�$�D��T��J��%�%�c�*�*�3���D��D�
��x�x�z���<�#��������a��
��t�~���>��)����S�)�*�1�c�D���;��k�G��j�4�'�G�	��h�h�w�'�/�/�G��<�<��(�(��j����g�1F�1F�!�%�-�-����U�]�]�1K�")�+�+�������}���#����G�G�G�$�����[�[��)�F���
����S�!�!��D�	
���G�����D���|�|�C�(��2��.�����L�!��c�,�'�'�
�s�*�v�K��)�	����D��		�s%�B#J�:J�	J�+J�J�J�darwinc��[R"U5nU(d[S5e[U[5(aSnSnSnOSnSnSnUcUnO[R"U5n[U5R
U5n[U5R
U5nU(aURU5O/nU(aURU5O/n[[Xx/55n	U/[U5U	-
-X�S-n
U
(dU$URU
5$![[[[4a [R "S	X5 ef=f)
z#Return a relative version of a pathzno path specifiedrUr2rarrrNr-)r<r=rgr3r4r�lstripr
rOrr
rCrDrE�DeprecationWarningrFrG)r6r�r#r%r$�
start_tail�	path_tail�
start_list�	path_listrQ�rel_lists           r7r-r-�s)���9�9�T�?�D���,�-�-��$�����������������}����	�	�%� ����U�^�*�*�3�/�
��D�M�(�(��-�	�.8�Z�%�%�c�*�b�
�,5�I�O�O�C�(�2�	���j�4�5�6���8�s�:��q�0�1�I�b�M�A����M��x�x��!�!���~�|�5G�H���$�$�Y��<�
��s�(BD�D�3E	c	��[[[RU55nU(d[	S5e[US[5(aSnSnOSnSnUVs/sHo3RU5PM nnUVs1sHoURU5iM snunUVVs/sH$owVs/sHo�(dMX�:wdMUPM snPM& nnn[U5n	[U5n
U	n[U	5Hup�X�U:wdMU	SUn O U(aUOUSSn
X�RU5-$s snfs snf![a
 [	S5Sef=fs snfs snnf![[4a [R "S	/UQ76 ef=f)
zDGiven a sequence of path names, returns the longest common sub-path.z%commonpath() arg is an empty sequencerr2rUrrz%Can't mix absolute and relative pathsNr.)�tuple�mapr<r=rgr3r4r
r@�min�max�	enumerater
rCrDrFrG)�pathsr%r#r6�split_pathsrIr	r>�crjrl�commonrQ�prefixs              r7r.r.s}��
�#�b�i�i��'�(�E���@�A�A��%��(�E�"�"����������38�9�5�4�z�z�#��5��9�	P�16�7��A�l�l�3�'��7�F�E�EP�P�K�q�1�:�1�a���a�k��1�:�K��P�
��
��
��
�����b�M�D�A��q�E�z��B�Q����"�
��3�r��7������(�(�(��#:��8���	P��D�E�4�O�	P��;��P��
�~�&���$�$�\�:�E�:�
��s~�E�D+�6E�9D5�=D0�D5�E�!	E�*
E�8E�?E�E�1E�)E�+E�0D5�5E�E�E�E�)F)N)*�__doc__r#r$r)r%r&r'r(r*r�r<r|rcrF�__all__r8rr	r
r
rrVr�posixrXrrurrrrr�r�rr�rrr+r}r,r-r.�r9r7�<module>r�s��
�

��	
��	��	��

��
��	
��
���	�
����4������8	�"7��(�(�0�0���
�'�5�6��<�N3(�t���	�.�j�0�@	�"'�^�B"�l�l�h�6��#�V$��S�'�'�'��\����s$�!B#�;B2�#	B/�.B/�2	B>�=B>

?>