HEX
Server: LiteSpeed
System: Linux standart9.isimtescil.net 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64
User: karalev (5310)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //opt/alt/python35/lib/python3.5/site-packages/setuptools/__pycache__/glob.cpython-35.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.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�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
!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-�subr/)rZdriver	r	r
r�s
)�__doc__r�rer&Zsetuptools.extern.sixr�__all__rrrrrrr*�compiler/r-rrrr	r	r	r
�<module>s"+