Your IP : 3.128.94.112


Current Path : /opt/alt/python312/lib/python3.12/site-packages/setuptools/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib/python3.12/site-packages/setuptools/__pycache__/glob.cpython-312.pyc

�

t��e���dZddlZddlZddlZgd�Zdd�Zdd�Zd�Zd�Zd�Z	d	�Z
d
�Zejd�Z
ejd�Zd
�Zd�Zd�Zy)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�escapec�.�tt||���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)�pathnamers  ��/builddir/build/BUILDROOT/alt-python312-setuptools-69.0.2-1.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/setuptools/glob.pyrrs����h�)�4�5�5�c�V�t||�}|rt|�rt|�}|rJ�|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)r	r�it�ss    r
rrs-��
��)�	$�B��\�(�+���H����
�Irc#�(K�tjj|�\}}|rt|�rtnt
}t
|�sJ|r$tjj|�r|��ytjj|�r|��y|s|||�Ed{���y||k7rt
|�r
t||�}n|g}t
|�st}|D]2}|||�D]$}tjj||����&�4y7�n�w�N)�os�path�splitr�glob2�glob1�	has_magic�lexists�isdirr
�glob0�join)r	r�dirname�basename�glob_in_dir�dirs�names       r
r
r
0s��������
�
�h�/��G�X�$��h�)?�%�U�K��X����w�w���x�(���
	��w�w�}�}�W�%������w��1�1�1���(��y��1��g�y�)���y���X�����.�����2�	.�D��'�'�,�,�w��-�-�	.�.�	2�s�BD�!D�"A/Dc��|s@t|t�r tjj	d�}ntj}	tj
|�}tj||�S#t$rgcYSwxYw�N�ASCII)	�
isinstance�bytesr�curdir�encode�listdir�OSError�fnmatch�filter)r�pattern�namess   r
rrTsh����g�u�%��i�i�&�&�w�/�G��i�i�G���
�
�7�#���>�>�%��)�)�����	��s�A/�/A=�<A=c���|s$tjj|�r|gSgStjjtjj	||��r|gSgSr)rrrrr)rrs  r
rrasT����7�7�=�=��!��:���I��7�7�?�?�2�7�7�<�<���:�;��:��
�Irc#�\K�t|�sJ�|dd��t|�D]}|���y�w)Nr)r�	_rlistdir)rr.�xs   r
rrqs6������ � �
�"�1�+��
�w�
������s�*,c#�K�|s@t|t�r tjj	d�}ntj}	tj
|�}|D]\}|��|r tjj||�n|}t|�D]$}tjj||����&�^y#tj$rYywxYw�wr$)
r&r'rr(r)r*�errorrrr2)rr/r3r�ys     r
r2r2ys�������g�u�%��i�i�&�&�w�/�G��i�i�G���
�
�7�#���%����+2�r�w�w�|�|�G�Q�'����4��	%�A��'�'�,�,�q�!�$�$�	%�%���8�8����s+�AC�B=�A"C�=C�C�C�Cz([*?[])s([*?[])c��t|t�rtj|�}|duStj|�}|duSr)r&r'�magic_check_bytes�search�magic_check)r�matchs  r
rr�sF���!�U��!�(�(��+�������"�"�1�%�����rc�6�t|t�r|dk(S|dk(S)Ns**z**)r&r')r.s r
rr�s!���'�5�!��%����$��rc���tjj|�\}}t|t�rt
j
d|�}||zStj
d|�}||zS)zEscape all special characters.s[\1]z[\1])rr�
splitdriver&r'r8�subr:)r	�drives  r
rr�sb���g�g�(�(��2�O�E�8��(�E�"�$�(�(��8�<���8����?�?�7�H�5���8��r)F)�__doc__r�rer,�__all__rrr
rrrr2�compiler:r8rrr�rr
�<module>rFsp���
�	��
%��6��$.�H
*�	� �%�"�b�j�j��#���B�J�J�z�*����	r

?>