3
Q'ícW ã @ s d Z ddlZddlZddlZddlmZ dddgZdddZdd dZd
d Z dd
Z
dd Zdd Zdd Z
ejdZejdZdd Zdd Zdd ZdS )zÊ
Filename globbing utility. Mostly a copy of `glob` from Python 3.5.
Changes include:
* `yield from` and PEP3102 `*` removed.
* `bytes` changed to `six.binary_type`.
* Hidden files are not ignored.
é N)Úbinary_typeÚglobÚiglobÚescapeFc C s t t| |dS )ay Return 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 ú5/tmp/pip-build-l_bcah40/setuptools/setuptools/glob.pyr s c C s, t | |}|r(t| r(t|}| s(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)r r ÚitÚsr r r