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

133 lines
10 KiB
Plaintext
Raw Normal View History

2019-11-17 12:44:16 +01:00
B
<00>x-]<5D>=<00>&@s^dZdZdZdZdZdZdZdZdZddl Z ddl
Z
ddl Z ddl Z dd l Td
d d d ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/g&Z d0d1<64>Zd2d
<EFBFBD>Zd3d <0B>Zd4d <0C>Zd5d<0E>Zd6d<0F>Ze jje_d7d <0A>Zd8d<10>Zd9d<11>Zd:d<17>Zd;d<19>Zd<d<1C>Zd=d<1D>Zdadad>d<1E>Zd?d<1F>Zd@d <20>Z dAd,<2C>Z!dBdC<64>Z"e
j#dDkZ$dGdEd.<2E>Z%dFd/<2F>Z&dS)Ha<48>Common operations on Posix pathnames.
Instead of importing this module directly, import os and refer to
this module as os.path. The "os.path" name is an alias for this
module on Posix systems; on other systems (e.g. Mac, Windows),
os.path provides the same operations in a manner specific to that
platform, and is an alias to another module (e.g. macpath, ntpath).
Some of this can actually be useful on non-Posix systems too, e.g.
for manipulation of the pathname component of URLs.
<EFBFBD>.z..<2E>/<2F>:z /bin:/usr/binNz /dev/null<6C>)<01>*<2A>normcase<73>isabs<62>join<69>
splitdrive<EFBFBD>split<69>splitext<78>basename<6D>dirname<6D> commonprefixZgetsizeZgetmtimeZgetatimeZgetctime<6D>islink<6E>exists<74>lexists<74>isdirZisfile<6C>ismount<6E>
expanduser<EFBFBD>
expandvars<EFBFBD>normpath<74>abspathZsamefileZ sameopenfile<6C>samestat<61>curdir<69>pardir<69>sep<65>pathsep<65>defpath<74>altsep<65>extsep<65>devnull<6C>realpath<74>supports_unicode_filenames<65>relpath<74>
commonpathcCst|t<01>rdSdSdS)N<>/r)<02>
isinstance<EFBFBD>bytes)<01>path<74>r)<00>W/home/hamo/projects/zoblak/parkingkoncept/parkingkonceptvenv/lib/python3.7/posixpath.py<70>_get_sep)s
r+cCs.t<00>|<00>}t|ttf<02>s*td<01>|jj<08><01><01>|S)z6Normalize case of pathname. Has no effect under Posixz2normcase() argument must be str or bytes, not '{}') <09>os<6F>fspathr&r'<00>str<74> TypeError<6F>format<61> __class__<5F>__name__)<01>sr)r)r*r4s

 cCst<00>|<00>}t|<00>}|<00>|<01>S)zTest whether a path is absolute)r,r-r+<00>
startswith)r3rr)r)r*r@s
c
Gs<>t<00>|<00>}t|<00>}|}yb|s,|dd<02>|xHttj|<01>D]8}|<04>|<02>rN|}q:|r\|<03>|<02>rf||7}q:|||7}q:WWn.tttfk
r<EFBFBD>t j
d|f|<01><02><00>YnX|S)z<>Join two or more pathname components, inserting '/' as needed.
If any component is an absolute path, all previous path components
will be discarded. An empty last part will result in a path that
ends with a separator.Nrr) r,r-r+<00>mapr4<00>endswithr/<00>AttributeError<6F> BytesWarning<6E> genericpath<74>_check_arg_types)<05>a<>prr(<00>br)r)r*rKs 


cCs`t<00>|<00>}t|<00>}|<00>|<01>d}|d|<02>||d<02>}}|rX||t|<03>krX|<03>|<01>}||fS)z<>Split a pathname. Returns tuple "(head, tail)" where "tail" is
everything after the final slash. Either part may be empty.<2E>N)r,r-r+<00>rfind<6E>len<65>rstrip)r<r<00>i<>head<61>tailr)r)r*r
hs

cCs6t<00>|<00>}t|t<03>rd}d}nd}d}t<04>||d|<02>S)Nr%<00>.rr)r,r-r&r'r9<00> _splitext)r<rrr)r)r*r ys

cCst<00>|<00>}|dd<02>|fS)zJSplit a pathname into drive and path. On Posix, drive is always
empty.Nr)r,r-)r<r)r)r*r <00>s
cCs,t<00>|<00>}t|<00>}|<00>|<01>d}||d<02>S)z)Returns the final component of a pathnamer>N)r,r-r+r?)r<rrBr)r)r*r <00>s
cCsNt<00>|<00>}t|<00>}|<00>|<01>d}|d|<02>}|rJ||t|<03>krJ|<03>|<01>}|S)z-Returns the directory component of a pathnamer>N)r,r-r+r?r@rA)r<rrBrCr)r)r*r <00>s
 
c Cs4yt<00>|<00>}Wnttfk
r&dSXt<04>|j<06>S)z&Test whether a path is a symbolic linkF)r,<00>lstat<61>OSErrorr7<00>stat<61>S_ISLNK<4E>st_mode)r(<00>str)r)r*r<00>s
cCs(yt<00>|<00>Wntk
r"dSXdS)zCTest whether a path exists. Returns True for broken symbolic linksFT)r,rGrH)r(r)r)r*r<00>s
cCs<>yt<00>|<00>}Wntk
r"dSXt<03>|j<05>r4dSt|t<07>rJt|d<02>}n
t|d<03>}t |<02>}yt<00>|<02>}Wntk
r~dSX|j
}|j
}||kr<>dS|j }|j }||kr<>dSdS)z$Test whether a path is a mount pointFs..z..T) r,rGrHrIrJrKr&r'rr!<00>st_dev<65>st_ino)r(<00>s1<73>parent<6E>s2Zdev1Zdev2Zino1Zino2r)r)r*r<00>s. 
 
c Cs4t<00>|<00>}t|t<03>rd}nd}|<00>|<01>s,|St|<00>}|<00>|d<03>}|dkrPt|<00>}|dkr<>dtjkr<>ddl }y|<04>
t<00> <0B><00>j }Wq<>t k
r<EFBFBD>|SXq<>tjd}nRddl }|d|<03>}t|t<03>r<>t|d<07>}y|<04>|<06>}Wnt k
r<EFBFBD>|SX|j }t|t<03><02>rt<00>|<05>}d}nd }|<05>|<08>}|||d<06><00>p2|S)
zOExpand ~ and ~user constructions. If user or $HOME is unknown,
do nothing.<2E>~<7E>~r>r<00>HOMEN<45>ASCIIr%r)r,r-r&r'r4r+<00>findr@<00>environ<6F>pwdZgetpwuid<69>getuidZpw_dir<69>KeyErrorr.Zgetpwnam<61>fsencoderA) r(ZtilderrBrXZuserhome<6D>nameZpwentZrootr)r)r*r<00>sB


 
  

 

c Cs\t<00>|<00>}t|t<03>rVd|kr |Sts:ddl}|<01>d|j<07>atj}d}d}t tdd<03>}n:d|krb|St
s|ddl}|<01>d |j<07>a
t
j}d
}d }tj }d}x<>|||<06>}|s<>P|<07> d<02>\}}|<07> d <0C>} | <09>|<03>r<>| <09>|<04>r<>| d d <0A>} y.|dk<08>rt<00>tj t<00>| <09><00>}
n|| }
Wntk
<EFBFBD>r&|}Yq<>X||d<03>} |d|<06>|
}t|<00>}|| 7}q<>W|S)zZExpand shell variables of form $var and ${var}. Unknown variables
are left unchanged.<2E>$rNs\$(\w+|\{[^}]*\})<29>{<7B>}<7D>environb<6E>$z\$(\w+|\{[^}]*\})<29>{<7B>}r><00><><EFBFBD><EFBFBD><EFBFBD>)r,r-r&r'<00> _varprogb<67>re<72>compilerU<00>search<63>getattr<74>_varprogrWZspanZgroupr4r6r[<00>fsdecoderZr@) r(rfrh<00>start<72>endrWrB<00>m<>jr\<00>valuerDr)r)r*rsP



 
 
  c Cs<>t<00>|<00>}t|t<03>r&d}d}d}d}nd}d}d}d}||krB|S|<00>|<01>}|rp|<00>|d <00>rp|<00>|d
<00>spd }|<00>|<01>}g}xR|D]J}|||fkr<>q<EFBFBD>||ks<>|s<>|r<>|r<>|d |kr<>|<07>|<08>q<>|r<>|<07><07>q<>W|}|<01>|<06>}|r<>|||}|p<>|S) z0Normalize path, eliminating double slashes, etc.r%<00>rEs..r<00>rz..<2E><00>rd) r,r-r&r'r4r
<00>append<6E>popr) r(rZempty<74>dotZdotdotZinitial_slashesZcompsZ new_compsZcompr)r)r*rRs>




   
 cCs@t<00>|<00>}t|<00>s8t|t<04>r&t<00><05>}nt<00><06>}t||<00>}t|<00>S)zReturn an absolute path.) r,r-rr&r'<00>getcwdb<64>getcwdrr)r(Zcwdr)r)r*rxs



cCs*t<00>|<00>}t|dd<02>|i<00>\}}t|<01>S)zlReturn the canonical path of the specified filename, eliminating any
symbolic links encountered in the path.Nr)r,r-<00> _joinrealpathr)<03>filenamer(<00>okr)r)r*r!<00>s
c
Cst|t<01>rd}d}d}n d}d}d}t|<01>r<|dd<00>}|}x<>|<01>r|<01>|<03>\}}}|r>||krbq>||kr<>|r<>t|<00>\}}||kr<>t|||<05>}q>|}q>t||<06>}t|<08>s<>|}q>||kr<>||}|dk r<>q>t||<01>dfSd||<t|t<08> |<08>|<02>\}} | <09>st||<01>dfS|||<q>W|d fS)
Nr%rEs..rrz..r>FT)
r&r'r<00> partitionr
rrrzr,<00>readlink)
r(<00>restZseenrrrr\<00>_Znewpathr|r)r)r*rz<00>sH
   
 rz<00>darwinc Cs<>|s td<01><01>t<01>|<00>}t|t<04>r.d}d}d}n d}d}d}|dkrH|}n
t<01>|<01>}ynd d
<EFBFBD>t|<01><01>|<03>D<00>}d d
<EFBFBD>t|<00><01>|<03>D<00>}tt||g<02><01>}|gt|<05>|||d<08>}|s<>|St |<08>St
t t t fk
r<EFBFBD>t<0E>d ||<01><00>YnXdS) z#Return a relative version of a pathzno path specifiedrEr%s..rrz..NcSsg|] }|r|<01>qSr)r))<02>.0<EFBFBD>xr)r)r*<00>
<listcomp><3E>szrelpath.<locals>.<listcomp>cSsg|] }|r|<01>qSr)r))r<>r<>r)r)r*r<><00>sr#)<10>
ValueErrorr,r-r&r'rr
r@rrr/r7r8<00>DeprecationWarningr9r:) r(rlrrrZ
start_list<EFBFBD> path_listrBZrel_listr)r)r*r#<00>s0


c s2|s td<01><01>tttj|<00><02>}t|dt<06>r4d<03>d<04>nd<05>d<06>fdd<08>|D<00>}yt<07>fd d
<EFBFBD>|D<00><01>\}Wntk
r<EFBFBD>td <0B>d <0C>YnX<00>fd d<08>|D<00>}t|<01>}t |<01>}|}x.t
|<03>D]"\}}|||kr<>|d |<06>}Pq<>W|r<><72>n
<EFBFBD>d d<02>}|<08><01> |<05>St t fk
<EFBFBD>r,tjd|<00><02><00>YnXd S)zDGiven a sequence of path names, returns the longest common sub-path.z%commonpath() arg is an empty sequencerr%rErrcsg|]}|<01><00><00><01>qSr))r
)r<>r()rr)r*r<><00>szcommonpath.<locals>.<listcomp>c3s|]}|dd<01><00>kVqdS)Nr>r))r<>r<)rr)r*<00> <genexpr>szcommonpath.<locals>.<genexpr>z%Can't mix absolute and relative pathsNcsg|]}<01>fdd<01>|D<00><01>qS)csg|]}|r|<01>kr|<01>qSr)r))r<><00>c)rr)r*r<>sz)commonpath.<locals>.<listcomp>.<listcomp>r))r<>r3)rr)r*r<>sr$)r$)r<><00>tupler5r,r-r&r'<00>set<65>min<69>max<61> enumeraterr/r7r9r:) <09>pathsZ split_pathsrrOrQZcommonrBr<><00>prefixr))rrr*r$<00>s6  )N)'<27>__doc__rrrrrrrr r,<00>sysrIr9<00>__all__r+rrrr
r rFr r r rrrrrjrerrrr!rz<00>platformr"r#r$r)r)r)r*<00><module> sZ 

   
 

 *25& 3

)