Files
old-nlp/venv/lib/python3.7/site-packages/setuptools/__pycache__/glob.cpython-37.pyc

60 lines
3.6 KiB
Plaintext
Raw Normal View History

2019-10-20 13:16:49 +02:00
B
<00>$<24>]<5D><00>@s<>dZddlZddlZddlZdddgZddd<03>Zddd<04>Zd d
<EFBFBD>Zd d <0C>Zd d<0E>Z dd<10>Z
dd<12>Z e<02> d<13>Z e<02> d<14>Zdd<16>Zdd<18>Zdd<05>ZdS)z<>
Filename globbing utility. Mostly a copy of `glob` from Python 3.5.
Changes include:
* `yield from` and PEP3102 `*` removed.
* Hidden files are not ignored.
<EFBFBD>N<>glob<6F>iglob<6F>escapeFcCstt||d<01><02>S)ayReturn a list of paths matching a pathname pattern.
The pattern may contain simple shell-style wildcards a la
fnmatch. However, unlike fnmatch, filenames starting with a
dot are special cases that are not matched by '*' and '?'
patterns.
If recursive is true, the pattern '**' will match any files and
zero or more directories and subdirectories.
)<01> recursive)<02>listr)<02>pathnamer<00>r<00>7/tmp/pip-install-zytfk_me/setuptools/setuptools/glob.pyrs cCs*t||<01>}|r&t|<00>r&t|<02>}|r&t<03>|S)a<>Return an iterator which yields the paths matching a pathname pattern.
The pattern may contain simple shell-style wildcards a la
fnmatch. However, unlike fnmatch, filenames starting with a
dot are special cases that are not matched by '*' and '?'
patterns.
If recursive is true, the pattern '**' will match any files and
zero or more directories and subdirectories.
)<04>_iglob<6F> _isrecursive<76>next<78>AssertionError)rr<00>it<69>srrr rs
 ccs tj<01>|<00>\}}t|<00>sF|r0tj<01>|<00>rB|Vntj<01>|<02>rB|VdS|s<>|rrt|<03>rrx4t||<03>D]
}|VqbWnxt||<03>D]
}|Vq~WdS||kr<>t|<02>r<>t ||<01>}n|g}t|<03>r<>|r<>t|<03>r<>t}q<>t}nt
}x0|D](}x"|||<03>D]}tj<01> ||<07>Vq<>Wq<>WdS)N) <0C>os<6F>path<74>split<69> has_magic<69>lexists<74>isdirr <00>glob2<62>glob1r
<00>glob0<62>join)rr<00>dirname<6D>basename<6D>x<>dirs<72> glob_in_dir<69>namerrr r
0s4    
  
r
cCsR|s"t|t<01>rtj<03>d<01>}ntj}yt<02>|<00>}Wntk
rDgSXt<07>||<01>S)N<>ASCII) <09>
isinstance<EFBFBD>bytesr<00>curdir<69>encode<64>listdir<69>OSError<6F>fnmatch<63>filter)r<00>pattern<72>namesrrr r[s
rcCs8|stj<01>|<00>r4|gSntj<01>tj<01>||<01><02>r4|gSgS)N)rrrrr)rrrrr rhs  rccs6t|<01>s t<01>|dd<01>Vxt|<00>D]
}|Vq$WdS)Nr)r r <00> _rlistdir)rr)rrrr rxs rccs<>|s"t|t<01>rtj<03>d<01>}ntj}yt<02>|<00>}Wntjk
rFdSXxJ|D]B}|V|rjtj<07>||<02>n|}x t |<03>D]}tj<07>||<04>VqxWqNWdS)Nr )
r!r"rr#r$r%<00>errorrrr+)rr*rr<00>yrrr r+<00>s

r+z([*?[])s([*?[])cCs(t|t<01>rt<02>|<00>}n
t<04>|<00>}|dk S)N)r!r"<00>magic_check_bytes<65>search<63> magic_check)r<00>matchrrr r<00>s
 
rcCst|t<01>r|dkS|dkSdS)Ns**z**)r!r")r)rrr r <00>s
r cCs<tj<01>|<00>\}}t|t<04>r(t<05>d|<00>}n t<07>d|<00>}||S)z#Escape all special characters.
s[\1]z[\1])rr<00>
splitdriver!r"r.<00>subr0)r<00>driverrr r<00>s

 )F)F)<12>__doc__r<00>rer'<00>__all__rrr
rrrr+<00>compiler0r.rr rrrrr <00><module>s 


+