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/python37/lib/python3.7/site-packages/setuptools/__pycache__/glob.cpython-37.opt-1.pyc
B

m�Re	�@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�@/opt/alt/python37/lib/python3.7/site-packages/setuptools/glob.pyrscCs"t||�}|rt|�rt|�}|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�srrr	rs
ccs�tj�|�\}}|r t|�r tnt}t|�sZ|rDtj�|�rV|Vntj�|�rV|VdS|sr|||�EdHdS||kr�t|�r�t	||�}n|g}t|�s�t
}x0|D](}x"|||�D]}tj�||�Vq�Wq�WdS)N)�os�path�splitr�glob2�glob1�	has_magic�lexists�isdirr
�glob0�join)rr�dirname�basenameZglob_in_dir�dirs�namerrr	r
0s(
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	rTs
rcCs8|stj�|�r4|gSntj�tj�||��r4|gSgS)N)rrrrr)rrrrr	rasrccs*|dd�Vxt|�D]
}|VqWdS)Nr)�	_rlistdir)rr&�xrrr	rqsrccs�|s"t|t�rtj�d�}ntj}yt�|�}Wntjk
rFdSXxJ|D]B}|V|rjtj�||�n|}x t	|�D]}tj�||�VqxWqNWdS)Nr)
rrrr r!r"�errorrrr()rr'r)r�yrrr	r(ys

r(z([*?[])s([*?[])cCs(t|t�rt�|�}n
t�|�}|dk	S)N)rr�magic_check_bytes�search�magic_check)r�matchrrr	r�s

rcCst|t�r|dkS|dkSdS)Ns**z**)rr)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�
splitdriverrr,�subr.)rZdriverrr	r�s

)F)F)�__doc__r�rer$�__all__rrr
rrrr(�compiler.r,rrrrrrr	�<module>s 


$