Files
old-parkingkoncept/parkingkonceptvenv/lib/python3.7/__pycache__/ntpath.cpython-37.pyc

213 lines
13 KiB
Plaintext
Raw Normal View History

2019-11-17 12:44:16 +01:00
B
<00>x-]DW<00>&@s4dZdZdZdZdZdZdZdZdZdd l Z dd l
Z
dd l Z dd l Z dd
l Td d d ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0g&Z d1d2<64>Zd3d <0B>Zd4d <0C>Zd5d <0A>Zd6d<0E>Zd7d<0F>Zd8d<10>Ze jje_d9d<11>Zd:d<12>Zd;d<18>Zd<d<1A>Zydd=lmZWnek
<EFBFBD>r(d ZYnXd>d<1D>Zd?d<1E>Zd@d<1F>ZdAd <20>Z dBdC<64>Z!yddDlm"Z"Wnek
<EFBFBD>r|e!Z#Yn
XdEd!<21>Z#e#Z$e%e
dF<EFBFBD><02>o<>e
<EFBFBD>&<26>dGdHkZ'dPdId,<2C>Z(dJd0<64>Z)y,e
<EFBFBD>&<26>d dH<64>dKk<05>r<>ddLlm*Z*ne<1C>Wn"e+efk
<EFBFBD>rdMdN<64>Z*YnXyddOlm,Z-Wnek
<EFBFBD>r.YnXd S)Qz<51>Common pathname manipulations, WindowsNT/95 version.
Instead of importing this module directly, import os and refer to this
module as os.path.
<EFBFBD>.z..<2E>\<5C>;<3B>/z.;C:\binZnul<75>N)<01>*<2A>normcase<73>isabs<62>join<69>
splitdrive<EFBFBD>split<69>splitext<78>basename<6D>dirname<6D> commonprefix<69>getsize<7A>getmtime<6D>getatime<6D>getctime<6D>islink<6E>exists<74>lexists<74>isdir<69>isfile<6C>ismount<6E>
expanduser<EFBFBD>
expandvars<EFBFBD>normpath<74>abspath<74>curdir<69>pardir<69>sep<65>pathsep<65>defpath<74>altsep<65>extsep<65>devnull<6C>realpath<74>supports_unicode_filenames<65>relpath<74>samefile<6C> sameopenfile<6C>samestat<61>
commonpathcCst|t<01>rdSdSdS)Ns\/z\/)<02>
isinstance<EFBFBD>bytes)<01>path<74>r0<00>T/home/hamo/projects/zoblak/parkingkoncept/parkingkonceptvenv/lib/python3.7/ntpath.py<70> _get_bothseps"s
r2c Csxt<00>|<00>}y.t|t<03>r&|<00>dd<02><02><05>S|<00>dd<04><02><05>SWn:ttfk
rrt|ttf<02>sltd|j j
<00>d<06><02>YnXdS)zaNormalize case of pathname.
Makes all characters lowercase and all slashes into backslashes.<2E>/<2F>\rrz0normcase() argument must be str or bytes, not %rN) <0B>os<6F>fspathr-r.<00>replace<63>lower<65> TypeError<6F>AttributeError<6F>str<74> __class__<5F>__name__)<01>sr0r0r1r,s

cCs2t<00>|<00>}t|<00>d}t|<00>dko0|dt|<00>kS)zTest whether a path is absolute<74>r)r5r6r
<00>lenr2)r>r0r0r1rCs
 c
GsTt<00>|<00>}t|t<03>r"d}d}d}n d}d}d}y<>|sD|dd<07>|t|<00>\}}x<>ttj|<01>D]~}t|<07>\}} | r<>| d|kr<>|s<>|s<>|}| }q^n*|r<>||kr<>|<08><06>|<05><06>kr<>|}| }q^|}|r<>|d|kr<>||}|| }q^W|<06>r|d|k<07>r|<05>r|dd<00>|k<03>r|||S||Sttt fk
<EFBFBD>rNt
j d |f|<01><02><00>YnXdS)
Nr4s\/<2F>:rz\/<2F>:r<00><><EFBFBD><EFBFBD><EFBFBD>r ) r5r6r-r.r
<00>mapr8r9r:<00> BytesWarning<6E> genericpath<74>_check_arg_types)
r/<00>pathsr <00>seps<70>colonZ result_driveZ result_path<74>pZp_driveZp_pathr0r0r1r KsF

     cCst<00>|<00>}t|<00>dk<05>rt|t<04>r0d}d}d}n d}d}d}|<00>||<01>}|dd<01>|dkr<>|dd <09>|kr<>|<04>|d<01>}|d
kr<>|d d<08>|fS|<04>||d <00>}||d kr<>|d d<08>|fS|d
kr<>t|<00>}|d |<06>||d <0B>fS|d d<01>|k<02>r|d d<01>|dd <0B>fS|d d<08>|fS) a<>Split a pathname into drive/UNC sharepoint and relative path specifiers.
Returns a 2-tuple (drive_or_unc, path); either part may be empty.
If you assign
result = splitdrive(p)
It is always true that:
result[0] + result[1] == p
If the path contained a drive letter, drive_or_unc will contain everything
up to and including the colon. e.g. splitdrive("c:/dir") returns ("c:", "/dir")
If the path contained a UNC path, the drive_or_unc will contain the host name
and share up to but not including the fourth directory separator character.
e.g. splitdrive("//host/computer/dir") returns ("//host/computer", "/dir")
Paths cannot contain both a drive letter and a UNC path.
<20>r4r3rArrrBr<00>rCNr?)r5r6r@r-r.r7<00>find)rKr r#rJZnormp<6D>indexZindex2r0r0r1r
zs.

 $  cCs|t<00>|<00>}t|<00>}t|<00>\}}t|<00>}x |rF||d|krF|d8}q(W|d|<03>||d<02>}}|<04>|<01>pn|}|||fS)z~Split a pathname.
Return tuple (head, tail) where tail is everything after the final slash.
Either part may be empty.r?N)r5r6r2r
r@<00>rstrip)rKrI<00>d<>i<>head<61>tailr0r0r1r <00>s
  cCs8t<00>|<00>}t|t<03>r$t<04>|ddd<03>St<04>|ddd<06>SdS)Nr4r3<00>.rrr)r5r6r-r.rF<00> _splitext)rKr0r0r1r <00>s

cCs t|<00>dS)z)Returns the final component of a pathnamer?)r )rKr0r0r1r <00>scCs t|<00>dS)z-Returns the directory component of a pathnamer)r )rKr0r0r1r<00>sc Cs4yt<00>|<00>}Wnttfk
r&dSXt<04>|j<06>S)zhTest whether a path is a symbolic link.
This will always return false for Windows prior to 6.0.
F)r5<00>lstat<61>OSErrorr:<00>stat<61>S_ISLNK<4E>st_mode)r/<00>str0r0r1r<00>s
cCs(yt<00>|<00>}Wntk
r"dSXdS)zCTest whether a path exists. Returns True for broken symbolic linksFT)r5rWrX)r/r\r0r0r1r<00>s
)<01>_getvolumepathnamecCstt<00>|<00>}t|<00>}t|<00>}t|<00>\}}|rD|d|krD| pB||kS||krPdStrl|<00>|<01>t|<00><01>|<01>kSdSdS)zaTest whether a path is a mount point (a drive root, the root of a
share, or a mounted volume)rTFN)r5r6r2rr
r]rP)r/rI<00>root<6F>restr0r0r1rs
 cCst<00>|<00>}t|t<03>rd}nd}|<00>|<01>s,|Sdt|<00>}}x$||kr^||t|<00>kr^|d7}q<Wdtjkrvtjd}n\dtjkr<>tjd}nFdtjkr<>|Sytjd}Wntk
r<EFBFBD>d}YnXt |tjd<00>}t|t<03>r<>t<00>
|<04>}|dk<03>rt t |<04>|d|<02><00>}|||d <09>S)
zLExpand ~ and ~user constructs.
If user or $HOME is unknown, do nothing.<2E>~<7E>~r?<00>HOMEZ USERPROFILEZHOMEPATHZ HOMEDRIVE<56>N) r5r6r-r.<00>
startswithr@r2<00>environ<6F>KeyErrorr <00>fsencoder)r/<00>tilderR<00>n<>userhome<6D>driver0r0r1rs2


 
 
 




cCs<t<00>|<00>}t|t<03>rhd|kr(d|kr(|Sddl}t|j|jdd<06>}d}d}d}d }d}ttd
d<04>}nFd |kr|d |kr||Sddl}|j|jd}d }d }d}d}d }tj}|dd<03>} d}
t |<00>} <0B>xn|
| k<00>r6||
|
d<00>} | |k<02>r\||
dd<04>}t |<00>} y&|<00>
| <0C>}
| | |d|
d<00>7} Wn*t k
<EFBFBD>rV| | |7} | d}
YnX<00>n<>| |k<02>rN||
d|
d<00>|k<02>r<>| | 7} |
d7}
n<EFBFBD>||
dd<04>}t |<00>} y|<00>
|<04>}
Wn*t k
<EFBFBD>r<>| ||7} | d}
YnhX|d|
<EFBFBD>} y.|dk<08>rt<00> tjt<00> | <0A><00>}n|| }Wn"tk
<EFBFBD>r@|| |}YnX| |7} <09>n<>| |k<02>r$||
d|
d<00>|k<02>r<>| | 7} |
d7}
<EFBFBD>q,||
d|
d<00>|k<02>rb||
dd<04>}t |<00>} y|<00>
|<06>}
Wn.t k
<EFBFBD>r<>| |||7} | d}
YnlX|d|
<EFBFBD>} y.|dk<08>r&t<00> tjt<00> | <0A><00>}n|| }Wn&tk
<EFBFBD>rV||| |}YnX| |7} n<>|dd<03>} |
d7}
||
|
d<00>} x6| <0C>r<>| |k<06>r<>| | 7} |
d7}
||
|
d<00>} <0C>q<>Wy.|dk<08>r<>t<00> tjt<00> | <0A><00>}n|| }Wntk
<EFBFBD>r
|| }YnX| |7} | <0C>r,|
d8}
n| | 7} |
d7}
q<EFBFBD>W| S)zfExpand shell variables of the forms $var, ${var} and %var%.
Unknown variables are left unchanged.<2E>$<24>%rNz_-<2D>ascii<69>'<27>{<7B>}<7D>environb<6E>$<24>%<25>'<27>{<7B>}r?rL)r5r6r-r.<00>string<6E> ascii_letters<72>digits<74>getattrrer@rO<00>
ValueErrorrg<00>fsdecoderf)r/rxZvarchars<72>quote<74>percentZbraceZrbraceZdollarre<00>resrOZpathlen<65>c<>var<61>valuer0r0r1rQs<>

 

 

  
  
  
 
 
 
 c CsTt<00>|<00>}t|t<03>r*d}d}d}d}d}nd}d}d}d }d
}|<00>|<05>rL|S|<00>||<01>}t|<00>\}}|<00>|<01>r<>||7}|<00>|<01>}|<00>|<01>}d }x<>|t |<07>k<00>r.||r<>|||kr<>||=q<>|||k<02>r$|d kr<>||d |kr<>||d |d <00>=|d 8}n&|d k<02>r|<06>
|<01><01>r||=n|d 7}q<>|d 7}q<>W|<06>sF|<07>sF|<07> |<03>||<01> |<07>S) z0Normalize path, eliminating double slashes, etc.r4r3rUs..)s\\.\s\\?\rrrz..)z\\.\z\\?\rr?) r5r6r-r.rdr7r
<00>lstripr r@<00>endswith<74>appendr ) r/r r#rrZspecial_prefixes<65>prefix<69>compsrRr0r0r1r<00>sF


  




  
cCs@t<00>|<00>}t|<00>s8t|t<04>r&t<00><05>}nt<00><06>}t||<00>}t|<00>S)z<>Return the absolute version of a path as a fallback function in case
`nt._getfullpathname` is not available or raises OSError. See bpo-31047 for
more.
) r5r6rr-r.<00>getcwdb<64>getcwdr r)r/<00>cwdr0r0r1<00>_abspath_fallback<63>s



r<>)<01>_getfullpathnamec Cs.y tt|<00><01>Sttfk
r(t|<00>SXdS)z&Return the absolute version of a path.N)rr<>rXr|r<>)r/r0r0r1r s <01>getwindowsversionrMrLc Csdt<00>|<00>}t|t<03>r"d}d}d}n d}d}d}|dkr:|}|sFtd<08><01>t<00>|<01>}y<>tt|<01><01>}tt|<00><01>}t|<05>\}}t|<06>\} }
t|<07>t| <09>kr<>td | |f<00><01>d
d <0B>|<08> |<02>D<00>} d d <0B>|
<EFBFBD> |<02>D<00>} d } x0t
| | <0C>D]"\}}t|<0E>t|<0F>kr<>P| d7} q<>W|gt | <0B>| | | d<07>}|<10>s(|St |<10>St ttttfk
<EFBFBD>r^t<11>d||<01><00>YnXdS)z#Return a relative version of a pathr4rUs..rrz..Nzno path specifiedz&path is on mount %r, start on mount %rcSsg|] }|r|<01>qSr0r0)<02>.0<EFBFBD>xr0r0r1<00>
<listcomp>4szrelpath.<locals>.<listcomp>cSsg|] }|r|<01>qSr0r0)r<>r<>r0r0r1r<>5srr?r()r5r6r-r.r|rrr
rr <00>zipr@r r9r:rE<00>DeprecationWarningrFrG)r/<00>startr rrZ start_absZpath_absZ start_driveZ
start_restZ
path_driveZ path_rest<73>
start_list<EFBFBD> path_listrRZe1Ze2<65>rel_listr0r0r1r(sF


      c s<>|s td<01><01>tttj|<00><02>}t|dt<06>r8d<03>d<04>d<05>n d<06>d<07>d<08><01>y><3E><00>fd d
<EFBFBD>|D<00>}<01>fd d
<EFBFBD>|D<00>}yt<07>fd d <0A>|D<00><01>\}Wntk
r<EFBFBD>td<0E>d<0F>YnXttdd <0A>|D<00><01><01>dkr<>td<12><01>t |d<00>
<EFBFBD><00><02><02>\}}|<05> <0B><02>}<06>fdd
<EFBFBD>|D<00>}<06>fdd
<EFBFBD>|D<00>}t |<02>}t |<02>}xBt|<07>D]&\} }
|
|| k<03>r,|d| <09>}P<00>q,W|dt|<07><01>}|<03>rt|<04>n|} | <0B><02>|<06>Sttfk
<EFBFBD>r<>tjd|<00><02><00>YnXdS)zDGiven a sequence of path names, returns the longest common sub-path.z%commonpath() arg is an empty sequencerr4r3rUrrrcs g|]}t|<01><01><00><01><02><02><00><01>qSr0)r
r7r8)r<>rK)r#r r0r1r<>aszcommonpath.<locals>.<listcomp>csg|]\}}|<02><00><00><01>qSr0)r )r<>rQrK)r r0r1r<>bsc3s"|]\}}|dd<01><00>kVqdS)Nr?r0)r<>rQrK)r r0r1<00> <genexpr>eszcommonpath.<locals>.<genexpr>z%Can't mix absolute and relative pathsNcss|]\}}|VqdS)Nr0)r<>rQrKr0r0r1r<>lsr?zPaths don't have the same drivecsg|]}|r|<01>kr|<01>qSr0r0)r<>r<>)rr0r1r<>qscsg|]}<01>fdd<01>|D<00><01>qS)csg|]}|r|<01>kr|<01>qSr0r0)r<>r<>)rr0r1r<>ssz)commonpath.<locals>.<listcomp>.<listcomp>r0)r<>r>)rr0r1r<>ssr,)r,)r|<00>tuplerDr5r6r-r.<00>setr@r
r7r <00>min<69>max<61> enumerater r9r:rFrG) rHZ drivesplits<74> split_pathsrrkr/<00>common<6F>s1<73>s2rRr<>r<>r0)r#rr r1r,PsF
 )<02>r)<01>_getfinalpathnamecCs tt|<00><01>S)N)rr)<01>fr0r0r1r<><00>sr<>)<01>_isdir)N).<2E>__doc__rrr$r r!r#r"r%r5<00>sysrYrF<00>__all__r2rrr r
r r rVr rrr<00>ntr]<00> ImportErrorrrrrr<>r<>rr&<00>hasattrr<72>r'r(r,r<>r:r<>rr0r0r0r1<00><module>sz 

 
 
/8
 
2q1
 
85