ok

Mini Shell

Direktori : /proc/self/root/opt/alt/python37/lib64/python3.7/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python37/lib64/python3.7/__pycache__/macpath.cpython-37.pyc

B

�x�c�� @sJdZdZdZdZdZdZdZdZdZddl	Z	ddl
TddlZddlTddlZej
d	ed
d�dd
ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+g Zd,d-�Zd.d�Zd/d
�Zd0d�Zd1d�Zd2d�Zejje_d3d�Zd4d�Zd5d�Zd6d7�Zd8d�Zd9d�Zd:d�Zd;d�ZGd<d=�d=e�Z d>d �Z!d?d!�Z"d@d*�Z#dAZ$dS)Bz7Pathname and path-related operations for the Macintosh.�:z::�.�
NzDev:Null�)�*zBthe macpath module is deprecated in 3.7 and will be removed in 3.8�)�
stacklevel�normcase�isabs�join�
splitdrive�split�splitext�basename�dirname�commonprefix�getsize�getmtime�getatime�getctime�islink�exists�lexists�isdir�isfile�
expanduser�
expandvars�normpath�abspath�curdir�pardir�sep�pathsep�defpath�altsep�extsep�devnull�realpath�supports_unicode_filenamescCst|t�rdSdSdS)N�:r)�
isinstance�bytes)�path�r,�,/opt/alt/python37/lib64/python3.7/macpath.py�
_get_colons
r.cCs(t|ttf�s td�|jj���|��S)Nz2normcase() argument must be str or bytes, not '{}')r)r*�str�	TypeError�format�	__class__�__name__�lower)r+r,r,r-r'scCs t|�}||ko|dd�|kS)z�Return true if a path is absolute.
    On the Mac, relative paths begin with a colon,
    but as a special case, paths with no colons at all are also relative.
    Anything else is absolute (the string up to the first colon is the
    volume name).N�)r.)�s�colonr,r,r-r	.sc
Gs�y�t|�}|}|s"|dd�|xj|D]b}|r8t|�r>|}q(|dd�|krZ|dd�}||krj||}|dd�|kr�||}||}q(W|Stttfk
r�tjd|f|���YnXdS)Nrr5���r
)r.r	r0�AttributeError�BytesWarning�genericpath�_check_arg_types)r6�pr7r+�tr,r,r-r
9s(
cCs�t|�}||kr |dd�|fSd}x0tt|��D] }|||d�|kr2|d}q2W|d|d�||d�}}|r�||kr�||}||fS)z�Split a pathname into two parts: the directory leading up to the final
    bit, and the basename (the filename, without colons, in that directory).
    The result (s, t) is such that join(s, t) yields the original argument.Nrr5)r.�range�len)r6r7�col�ir+�filer,r,r-rPscCs.t|t�rt�|dtd�St�|ttt�SdS)Nr(�.)r)r*r;�	_splitextr#r r$)r=r,r,r-r
`s
cCs|dd�|fS)a@Split a pathname into a drive specification and the rest of the
    path.  Useful on DOS/Windows/NT; on the Mac, the drive is always
    empty (don't use the volume name -- it doesn't have the same
    syntactic and semantic oddities as DOS drive letters, such as there
    being a separate current directory per drive).Nrr,)r=r,r,r-rgscCst|�dS)Nr)r)r6r,r,r-rs�cCst|�dS)Nr5)r)r6r,r,r-rtrFcCs*t|�sdSt|�}t|�dko(|dS)NFrr5)r	rr@)r6�
componentsr,r,r-�ismountvsrHcCs*yddl}|j�|d�dSdSdS)z6Return true if the pathname refers to a symbolic link.rNrF)�Carbon.File�FileZResolveAliasFile)r6�Carbonr,r,r-r|s
cCs(yt�|�}Wntk
r"dSXdS)zCTest whether a path exists.  Returns True for broken symbolic linksFT)�os�lstat�OSError)r+�str,r,r-r�s
cCs|S)zEDummy to retain interface-compatibility with other operating systems.r,)r+r,r,r-r�scCs|S)zEDummy to retain interface-compatibility with other operating systems.r,)r+r,r,r-r�sc@seZdZdZdS)�
norm_errorzPath cannot be normalizedN)r3�
__module__�__qualname__�__doc__r,r,r,r-rP�srPcCs�t|�}||kr||S|�|�}d}x^|t|�dkr�||sz||drz|dkrp||d|d�=|d}q�td��q(|d}q(W|�|�}|dd�|kr�t|�dkr�||t|�kr�|dd�}|S)zLNormalize a pathname.  Will return the same result for
    equivalent paths.r5z+Cannot use :: immediately after volume namer8Nr)r.rr@rPr
)r6r7�compsrBr,r,r-r�s 



,cCs6t|�s.t|t�rt��}nt��}t||�}t|�S)zReturn an absolute path.)r	r)r*rL�getcwdb�getcwdr
r)r+�cwdr,r,r-r�s


c	Cs�t|�}yddl}Wntk
r(|SX|s2|St|�}|�|�}|d|}xR|dd�D]B}t||�}y|j�|d�d��}Wq^|jj	k
r�Yq^Xq^W|S)Nrr5)
rrI�ImportErrorr.rr
rJZFSResolveAliasFileZas_pathname�Error)r+rKr7rG�cr,r,r-r&�s"


T)%rSrrr$r r!r"r#r%rL�statr;�warnings�warn�DeprecationWarning�__all__r.rr	r
rr
rErrrrHrrrr�	ExceptionrPrrr&r'r,r,r,r-�<module>sR



	

Zerion Mini Shell 1.0