HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/python38/lib/python3.8/site-packages/setuptools/__pycache__/glob.cpython-38.pyc
U

�i�_��@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�3/tmp/pip-unpacked-wheel-tlqm5ymo/setuptools/glob.pyrscCs*t||�}|r&t|�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�AssertionError)rr�it�srrr	rs

ccs�tj�|�\}}t|�sF|r0tj�|�rB|Vntj�|�rB|VdS|s�|rnt|�rnt||�D]
}|Vq`nt||�D]
}|VqxdS||kr�t|�r�t	||�}n|g}t|�r�|r�t|�r�t}q�t}nt
}|D]$}|||�D]}tj�||�Vq�q�dS�N)�os�path�split�	has_magic�lexists�isdirr�glob2�glob1r
�glob0�join)rr�dirname�basename�x�dirs�glob_in_dir�namerrr	r
0s4
r
cCsV|s"t|t�rtj�d�}ntj}zt�|�}Wntk
rHgYSXt�||�S�N�ASCII)	�
isinstance�bytesr�curdir�encode�listdir�OSError�fnmatch�filter)r�pattern�namesrrr	r[s

rcCs8|stj�|�r4|gSntj�tj�||��r4|gSgSr)rrrrr)rrrrr	rhsrccs2t|�st�|dd�Vt|�D]
}|Vq"dS)Nr)rr
�	_rlistdir)rr+rrrr	rxsrccs�|s"t|t�rtj�d�}ntj}zt�|�}Wntjk
rHYdSX|D]>}|V|rjtj�||�n|}t	|�D]}tj�||�VqvqNdSr!)
r#r$rr%r&r'�errorrrr-)rr,rr�yrrr	r-�s
r-z([*?[])s([*?[])cCs(t|t�rt�|�}n
t�|�}|dk	Sr)r#r$�magic_check_bytes�search�magic_check)r�matchrrr	r�s

rcCst|t�r|dkS|dkSdS)Ns**z**)r#r$)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�
splitdriver#r$r0�subr2)r�driverrr	r�s

)F)F)�__doc__r�rer)�__all__rrr
rrrr-�compiler2r0rrrrrrr	�<module>s 


+