B Jxs @sFdZdZdZdZdZdZdZdZddlZddl Tddl Z ddl Tddl Z e j de d d d d d ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*g Zd+d,Zd-d Zd.d Zd/d Zd0dZd1dZe jje_d2dZd3dZd4dZd5d6Zd7dZd8dZd9dZd:dZGd;d<dd Z"d?d)Z#d@Z$dS)A:z::. NzDev:Null)*zBthe macpath module is deprecated in 3.7 and will be removed in 3.8) stacklevelnormcaseisabsjoin splitdrivesplitsplitextbasenamedirname commonprefixgetsizegetmtimegetatimegetctimeislinkexistslexistsisdirisfile expanduser expandvarsnormpathabspathcurdirpardirseppathsepdefpathaltsepextsepdevnullrealpathsupports_unicode_filenamescCst|trdSdSdS)N:r) isinstancebytes)pathr,*/opt/alt/python37/lib/python3.7/macpath.py _get_colons r.cCs(t|ttfs td|jj|S)Nz2normcase() argument must be str or bytes, not '{}')r)r*str TypeErrorformat __class____name__lower)r+r,r,r-r's cCs t|}||ko|dd|kS)N)r.)scolonr,r,r-r .sc Gsyt|}|}|s"|dd|xj|D]b}|r8t|r>|}q(|dd|krZ|dd}||krj||}|dd|kr||}||}q(W|Stttfk rtjd|f|YnXdS)Nrr5r )r.r r0AttributeError BytesWarning genericpath_check_arg_types)r6pr7r+tr,r,r-r 9s(    cCst|}||kr |dd|fSd}x0tt|D] }|||d|kr2|d}q2W|d|d||d}}|r||kr||}||fS)Nrr5)r.rangelen)r6r7colir+filer,r,r-r Ps  cCs.t|trt|dtdSt|tttSdS)Nr(.)r)r*r; _splitextr#r r$)r=r,r,r-r `s cCs|dd|fS)Nrr,)r=r,r,r-r gscCs t|dS)Nr)r )r6r,r,r-rscCs 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|ddSdSdS)NrrF) Carbon.FileFileZResolveAliasFile)r6Carbonr,r,r-r|s cCs(yt|}Wntk r"dSXdS)NFT)oslstatOSError)r+str,r,r-rs cCs|S)Nr,)r+r,r,r-rscCs|S)Nr,)r+r,r,r-rsc@s eZdZdS) norm_errorN)r3 __module__ __qualname__r,r,r,r-rPsrPcCst|}||kr||S||}d}x^|t|dkr||sz||drz|dkrp||d|d=|d}qtdq(|d}q(W||}|dd|krt|dkr||t|kr|dd}|S)Nr5z+Cannot use :: immediately after volume namer8r)r.r r@rPr )r6r7compsrBr,r,r-rs      , cCs6t|s.t|trt}nt}t||}t|S)N)r r)r*rLgetcwdbgetcwdr r)r+cwdr,r,r-rs    c Cst|}y ddl}Wntk r(|SX|s2|St|}||}|d|}xR|ddD]B}t||}y|j|dd}Wq^|jj k rYq^Xq^W|S)Nrr5) rrI ImportErrorr.r r rJZFSResolveAliasFileZ as_pathnameError)r+rKr7rGcr,r,r-r&s"     T)%rrr$r r!r"r#r%rLstatr;warningswarnDeprecationWarning__all__r.rr r r r rE__doc__r rrrHrrrr ExceptionrPrrr&r'r,r,r,r-sP