Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
B

DM'ÂTFã@s’dZddlZddlZddlZdddgZddd„Zddd„Zd	d
„Zdd„Zd
d„Z	dd„Z
dd„Ze d¡Z
e d¡Zdd„Zdd„Zdd„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.
éNÚglobÚiglobÚescapeFcCstt||dƒ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.
    )Ú	recursive)Úlistr)Úpathnamer©rú7/tmp/pip-install-5x7thzyg/setuptools/setuptools/glob.pyrscCs*t||ƒ}|r&t|ƒr&t|ƒ}|r&t‚|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.
    )Ú_iglobÚ_isrecursiveÚnextÚAssertionError)rrÚitÚsrrr	rs

ccstj |¡\}}t|ƒsF|r0tj |¡rB|Vntj |¡rB|VdS|s|rrt|ƒrrx4t||ƒD]
}|VqbWnxt||ƒD]
}|Vq~WdS||kr¬t|ƒr¬t	||ƒ}n|g}t|ƒrÒ|rÌt|ƒrÌt}qÖt}nt
}x0|D](}x"|||ƒD]}tj ||¡VqìWqÜWdS)N)ÚosÚpathÚsplitÚ	has_magicÚlexistsÚisdirrÚglob2Úglob1r
Úglob0Újoin)rrÚdirnameÚbasenameÚxÚdirsÚglob_in_dirÚnamerrr	r
0s4

r
cCsR|s"t|tƒrtj d¡}ntj}yt |¡}Wntk
rDgSXt ||¡S)NÚASCII)	Ú
isinstanceÚbytesrÚcurdirÚencodeÚlistdirÚOSErrorÚfnmatchÚfilter)rÚpatternÚnamesrrr	r[s
rcCs8|stj |¡r4|gSntj tj ||¡¡r4|gSgS)N)rrrrr)rrrrr	rhsrccs6t|ƒst‚|dd…Vxt|ƒD]
}|Vq$WdS)Nr)rr
Ú	_rlistdir)rr)rrrr	rxsrccs˜|s"t|tƒrtj d¡}ntj}yt |¡}Wntjk
rFdSXxJ|D]B}|V|rjtj ||¡n|}x t	|ƒD]}tj ||¡VqxWqNWdS)Nr )
r!r"rr#r$r%Úerrorrrr+)rr*rrÚyrrr	r+€s

r+z([*?[])s([*?[])cCs(t|tƒrt |¡}n
t |¡}|dk	S)N)r!r"Úmagic_check_bytesÚsearchÚmagic_check)rÚmatchrrr	r•s

rcCst|tƒr|dkS|dkSdS)Ns**z**)r!r")r)rrr	rs
rcCs<tj |¡\}}t|tƒr(t d|¡}nt d|¡}||S)z#Escape all special characters.
    s[\1]z[\1])rrÚ
splitdriver!r"r.Úsubr0)rÚdriverrr	r¤s

)F)F)Ú__doc__rÚrer'Ú__all__rrr
rrrr+Úcompiler0r.rrrrrrr	Ú<module>s 


+