Plan 9 from Bell Labs’s /usr/web/sources/contrib/bichued/root/sys/lib/python/glob.pyc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


�
��c@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				

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.