File: //usr/lib64/python3.9/__pycache__/ntpath.cpython-39.pyc
a
    ���hcn  �                   @   s�  d Z dZdZdZdZdZdZdZdZdd	l	Z	dd	l
Z
dd	lZdd	lZdd
lT g d�Z
dd
� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zejj e_ dd� Zdd� Zdd� Zd d!� Zzdd"lmZ W n ey�   d	ZY n0 d#d$� Zd%d&� Zd'd(� Zd)d*� Z d+d,� Z!zdd-lm"Z" W n e�y.   e!Z#Y n
0 d.d/� Z#zdd0lm$Z$m%Z& W n" e�yn   d1d2�d3d4�Z'Y n(0 e(fd5d6�Z)e(fd7d8�Z*d1d2�d9d4�Z'e+e
d:��o�e
�,� d; d<kZ-dBd=d>�Z.d?d@� Z/zddAlm0Z1 W n e�y�   Y n0 d	S )Cz�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                 C   s   t | t�rdS dS d S )N�   \/�\/)�
isinstance�bytes��path� r6   �/usr/lib64/python3.9/ntpath.py�
_get_bothseps#   s    
r8   c                 C   s8   t �| �} t| t�r$| �dd��� S | �dd��� S dS )zaNormalize case of pathname.
    Makes all characters lowercase and all slashes into backslashes.�   /�   \r   r   N)�os�fspathr2   r3   �replace�lower��sr6   r6   r7   r	   -   s    
r	   c                 C   sj   t �| �} t| t�r,| �dd��d�rBdS n| �dd��d�rBdS t| �d } t| �d	koh| d	 t| �v S )
zTest whether a path is absoluter9   r:   �   \\?\Tr   r   �\\?\�   r   )	r;   r<