Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/
Upload File :
Current File : //usr/lib/python2.7/glob.pyc


|_c@sdZddlZddlZddlZddlZddgZdZdZdZdZ	ej
d	Zd
ZdS(sFilename globbing utility.iNtglobtiglobcCstt|S(sReturn a list of paths matching a pathname pattern.

    The pattern may contain simple shell-style wildcards a la fnmatch.

    (tlistR(tpathname((s/usr/lib/python2.7/glob.pyR
sccst|s*tjj|r&|VndStjj|\}}|snxttj|D]}|Vq[WdSt|rt|}n	|g}t|rt}nt}x<|D]4}x+|||D]}tjj	||VqWqWdS(sReturn an iterator which yields the paths matching a pathname pattern.

    The pattern may contain simple shell-style wildcards a la fnmatch.

    N(
t	has_magictostpathtlexiststsplittglob1tcurdirRtglob0tjoin(Rtdirnametbasenametnametdirstglob_in_dir((s/usr/lib/python2.7/glob.pyRs$			
cCs|stj}nt|trUt|trUt|tjpLtj}nytj|}Wntjk
rgSX|ddkrt	d|}nt
j	||S(Nit.cSs|ddkS(NiR((tx((s/usr/lib/python2.7/glob.pyt<lambda><s(RR
t
isinstancetunicodetsystgetfilesystemencodingtgetdefaultencodingtlistdirterrortfiltertfnmatch(R
tpatterntnames((s/usr/lib/python2.7/glob.pyR	1scCsT|dkr(tjj|rP|gSn(tjjtjj||rP|gSgS(Nt(RRtisdirRR(R
R((s/usr/lib/python2.7/glob.pyR?s
!s[*?[]cCstj|dk	S(N(tmagic_checktsearchtNone(ts((s/usr/lib/python2.7/glob.pyRMs(
t__doc__RRtreRt__all__RRR	RtcompileR"R(((s/usr/lib/python2.7/glob.pyt<module>s