File: //proc/self/root/opt/alt/python311/lib64/python3.11/__pycache__/ntpath.cpython-311.pyc
�
    !A?h�w  �                   �j  � d Z dZdZdZdZdZdZdZdZdd	l	Z	dd	l
Z
dd	lZdd	lZdd
lT g d�Z
d� Z	 dd
lmZmZmZ d� Zn# e$ r d� ZY nw xY wd� Zd� Zd� Zd� Zd� Zej        j         e_         d� Zd� Zd� Z d� Z!	 ddl"m#Z# n
# e$ r d	Z#Y nw xY wd� Z$d� Z%d� Z&	 ddl"m'Z' d� Z(n# e$ r d� Z(Y nw xY wd � Z)	 dd!l"m*Z* d"� Z+n
# e$ r e)Z+Y nw xY w	 dd#l"m,Z,m-Z. e/fd$�Z0e/fd%�Z1d&d'�d(�Z2n# e$ r	 d&d'�d)�Z2Y nw xY w e3e
d*�  �        o e
j4        �   �         d+         d,k    Z5d0d-�Z6d.� Z7	 dd/l"m8Z9 d	S # e$ r Y d	S w xY w)1z�Common pathname manipulations, WindowsNT/95 version.
Instead of importing this module directly, import os and refer to this
module as os.path.
�.�..�\�;�/z.;C:\bin�nul�    N)�*)'�normcase�isabs�join�
splitdrive�split�splitext�basename�dirname�commonprefix�getsize�getmtime�getatime�getctime�islink�exists�lexists�isdir�isfile�ismount�
expanduser�
expandvars�normpath�abspath�curdir�pardir�sep�pathsep�defpath�altsep�extsep�devnull�realpath�supports_unicode_filenames�relpath�samefile�sameopenfile�samestat�
commonpath�
ALLOW_MISSINGc                 �4   � t          | t          �  �        rdS dS )N�   \/�\/)�
isinstance�bytes��paths    �-/opt/alt/python311/lib64/python3.11/ntpath.py�
_get_bothsepsr9   $   s   � ��$���� ��v��u�    )�
LCMapStringEx�LOCALE_NAME_INVARIANT�LCMAP_LOWERCASEc                 �  � t          j        | �  �        } | s| S t          | t          �  �        rnt	          j        �   �         }| �                    |d�  �        �                    dd�  �        } t          t          t          | �  �        } | �                    |d�  �        S t          t          t          | �                    dd�  �        �  �        S )�nNormalize case of pathname.
        Makes all characters lowercase and all slashes into backslashes.
        �surrogateescaper   r   )�os�fspathr4   r5   �sys�getfilesystemencoding�decode�replace�_LCMapStringEx�_LOCALE_NAME_INVARIANT�_LCMAP_LOWERCASE�encode)�s�encodings     r8   r
   r
   4   s�   � �
 
�I�a�L�L��� 	��H��a���� 		8��0�2�2�H�����#4�5�5�=�=�c�4�H�H�A��5�/��4� 4�A��8�8�H�&7�8�8�8�!�"8�"2�"#�)�)�C��"6�"6�8� 8� 
8r:   c                 �<  � t          j        | �  �        } t          | t          �  �        rLt          j        t          j        | �  �        �                    dd�  �        �                    �   �         �  �        S | �                    dd�  �        �                    �   �         S )r?   r   r   )rA   rB   r4   r5   �fsencode�fsdecoderF   �lower)rK   s    r8   r
   r
   G   sx   � �
 
�I�a�L�L���a���� 	J��;�r�{�1�~�~�5�5�c�4�@�@�F�F�H�H�I�I�I��y�y��d�#�#�)�)�+�+�+r:   c                 �  � t          j        | �  �        } t          | t          �  �        rd}d}d}nd}d}d}| dd�         �                    ||�  �        } | �                    |�  �        s| �                    |d	�  �        rd
S dS )zTest whether a path is absolute�   \�   /s   :\r   r   z:\N�   �   TF)rA   rB   r4   r5   rF   �
startswith)rK   r#   r&