File: //usr/lib/python3.10/__pycache__/ntpath.cpython-310.pyc
o
� i�k � @ s d Z dZdZdZdZdZdZdZdZdd l Z dd l
Z
dd lZdd lZdd
lT g d�Z
dd
� ZzddlmZmZmZ dd� ZW n
eyK dd� ZY nw dd� Zdd� Zdd� Zdd� Zdd� Zejj e_ dd� Zdd� Zd d!� Z d"d#� Z!zdd$l"m#Z# W n ey� d Z#Y nw d%d&� Z$d'd(� Z%d)Z&d a'd a(d*d+� Z)d,d-� Z*d.d/� Z+zdd0l"m,Z, W n ey� e+Z-Y nw d1d2� Z-z
dd3l"m.Z.m/Z0 W n ey� e-Z1Y nw d4d5� Z2d6d7� Z3d8d9�d:d;�Z1e4e
d<�o�e
�5� d= d>kZ6dDd?d@�Z7dAdB� Z8z ddCl"m9Z: W d S e�y
Y d S w )Ez�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�
commonpathc C s t | t�rdS dS )N� \/�\/)�
isinstance�bytes��path� r5 �/usr/lib/python3.10/ntpath.py�
_get_bothseps# s
r7 )�
LCMapStringEx�LOCALE_NAME_INVARIANT�LCMAP_LOWERCASEc C sd t �| �} | s | S t| t�r(t�� }| �|d��dd�} tt t
| �} | �|d�S tt t
| �dd��S )�nNormalize case of pathname.
Makes all characters lowercase and all slashes into backslashes.
�surrogateescaper r )�os�fspathr1 r2 �sys�getfilesystemencoding�decode�replace�_LCMapStringEx�_LOCALE_NAME_INVARIANT�_LCMAP_LOWERCASE�encode)�s�encodingr5 r5 r6 r 3 s
�
�r c C s@ t �| �} t| t�rt �t �| ��dd��� �S | �dd��� S )r; r r )r= r>