MOON
Server: Apache
System: Linux server30c.hostingraja.org 3.10.0-962.3.2.lve1.5.63.el7.x86_64 #1 SMP Fri Oct 8 12:03:35 UTC 2021 x86_64
User: jibhires (1887)
PHP: 8.1.30
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open, allow_url_fopen, symlink, escapeshellcmd, pcntl_exec
Upload Files
File: //opt/alt/python35/lib/python3.5/site-packages/setuptools/__pycache__/glob.cpython-35.opt-1.pyc


i�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	�/glob.pyrscCs1t||�}|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)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�dirsZglob_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
!rccs/|dd�Vxt|�D]}|VqWdS)Nr)�	_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,�subr.)rZdriver	r	r
r�s
)�__doc__r�rer%Zsetuptools.extern.sixr�__all__rrrrrrr)�compiler.r,rrrr	r	r	r
�<module>s"+