Your IP : 3.145.89.181


Current Path : /opt/alt/python35/lib/python3.5/site-packages/setuptools/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib/python3.5/site-packages/setuptools/__pycache__/glob.cpython-35.pyc



�ReW�@s�dZddlZddlZddlZddlmZdddgZddd�Zdd	d�Zd
d�Z	dd
�Z
dd�Zdd�Zdd�Z
ejd�Zejd�Zdd�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�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	��/builddir/build/BUILDROOT/alt-python35-setuptools-36.3.0-4.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/setuptools/glob.pyrscCs>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)rr�it�sr	r	r
r s

ccshtjj|�\}}t|�s_|rDtjj|�r[|Vntjj|�r[|VdS|s�|r�t|�r�x>t||�D]}|Vq�Wnxt||�D]}|Vq�WdS||kr�t|�r�t	||�}n	|g}t|�r|rt|�rt}q%t}nt
}x<|D]4}x+|||�D]}tjj||�VqBWq,WdS)N)�os�path�split�	has_magic�lexists�isdirr�glob2�glob1r�glob0�join)rr�dirname�basename�x�dirs�glob_in_dir�namer	r	r
r2s4				
rcCso|s3t|t�r*tjjd�}n	tj}ytj|�}Wntk
r^gSYnXtj||�S)N�ASCII)	�
isinstancerr�curdir�encode�listdir�OSError�fnmatch�filter)r�pattern�namesr	r	r
r]s	
	rcCsN|s"tjj|�rJ|gSn(tjjtjj||��rJ|gSgS)N)rrrrr)rrr	r	r
rjs
!rccsAt|�st�|dd�Vxt|�D]}|Vq.WdS)Nr)rr�	_rlistdir)rr)rr	r	r
rzsrc
cs�|s3t|t�r*ttjd�}n	tj}ytj|�}Wntjk
radSYnXx_|D]W}|V|r�tjj||�n|}x(t|�D]}tjj||�Vq�WqiWdS)Nr!)	r"rrr#r%�errorrrr+)rr*rr�yr	r	r
r+�s		
!r+z([*?[])s([*?[])cCs:t|t�r!tj|�}ntj|�}|dk	S)N)r"r�magic_check_bytes�search�magic_check)r�matchr	r	r
r�srcCs't|t�r|dkS|dkSdS)Ns**z**)r"r)r)r	r	r
r�s
rcCsVtjj|�\}}t|t�r<tjd|�}ntjd|�}||S)z#Escape all special characters.
    s[\1]z[\1])rr�
splitdriver"rr.�subr0)r�driver	r	r
r�s
)�__doc__r�rer'Zsetuptools.extern.sixr�__all__rrrrrrr+�compiler0r.rrrr	r	r	r
�<module>s"+


?>