git: 9front

ref: 4bb9e229bcb23826a0fde907667c8fd6565d98d2
dir: /sys/lib/python/glob.pyc/

View raw version
��
�l�Jc@svdZddkZddkZddkZddgZd�Zd�Zd�Zd�Zei	d	�Z
d
�ZdS(sFilename globbing utility.i����NtglobtiglobcCstt|��S(s�Return a list of paths matching a pathname pattern.

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

    (tlistR(tpathname((s/sys/lib/python/glob.pyR	sccst|�p$tii|�o	|VndSntii|�\}}|p*xtti|�D]}|VqcWdSnt|�ot|�}n
|g}t|�o
t}nt}x<|D]4}x+|||�D]}tii	||�Vq�Wq�WdS(s�Return a list of paths matching a pathname pattern.

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

    N(
t	has_magictostpathtlexiststsplittglob1tcurdirRtglob0tjoin(Rtdirnametbasenametnametdirstglob_in_dir((s/sys/lib/python/glob.pyRs*
		
	

cCs{|p
ti}nyti|�}Wntij
ogSnX|ddjotd�|�}nti||�S(Nit.cSs|ddjS(iR((tx((s/sys/lib/python/glob.pyt<lambda>8s(RR
tlistdirterrortfiltertfnmatch(R
tpatterntnames((s/sys/lib/python/glob.pyR	0s
	cCs`|djo"tii|�o|gSq\n.tiitii||��o|gSngS(Nt(RRtisdirRR(R
R((s/sys/lib/python/glob.pyR;s
"s[*?[]cCsti|�dj	S(N(tmagic_checktsearchtNone(ts((s/sys/lib/python/glob.pyRIs(t__doc__RRtret__all__RRR	RtcompileRR(((s/sys/lib/python/glob.pys<module>s