Your IP : 3.145.36.252


Current Path : /opt/cloudlinux/venv/lib64/python3.11/site-packages/setuptools/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/setuptools/__pycache__/glob.cpython-311.pyc

�

\�bg����dZddlmZddlZddlZddlZddlmZmZddl	m
Z
mZmZe
r
ddl
mZmZmZgd�Zd1d2d�Zd1d3d�Zd3d�Zed4d���Zed5d���Zd6d �Zd!�Zed7d#���Zed8d%���Zd9d'�Zed:d(���Zed;d)���Zd<d*�Zejd+��Zejd,��Zd=d.�Zd>d/�Zd0�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.
�)�annotationsN)�Iterable�Iterator)�
TYPE_CHECKING�AnyStr�overload)�	BytesPath�StrOrBytesPath�StrPath)�glob�iglob�escapeF�pathnamer�	recursive�bool�return�list[AnyStr]c�>�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.
    )r)�listr
)rrs  �`/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/setuptools/glob.pyrrs����h�)�4�4�4�5�5�5��Iterator[AnyStr]c�n�t||��}|r"t|��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)rr�it�ss    rr
r
%sC��
��)�	$�	$�B���\�(�+�+����H�H�����u�
�Irc#�VK�tj�|��\}}|rt|��rtnt
}t
|��sK|r$tj�|��r|V�n#tj�|��r|V�dS|s|||��Ed{V��dS||kr t
|��rt||��}n|g}t
|��st}|D]3}|||��D]$}tj�||��V��%�4dS�N)�os�path�splitr�glob2�glob1�	has_magic�lexists�isdirr�glob0�join)rr�dirname�basename�glob_in_dir�dirs�names       rrr7sg������
�
�h�/�/��G�X�$�J��h�)?�)?�J�%�%�U�K��X�����	��w���x�(�(�
�������w�}�}�W�%�%�
����������;�w��1�1�1�1�1�1�1�1�1����(���y��1�1��!'���!;�!;����y���X�������.�.���K���2�2�	.�	.�D��'�,�,�w��-�-�-�-�-�-�	.�.�.rr+r�pattern�str�	list[str]c��dSr ��r+r0s  rr%r%[s��8;�rr	�bytes�list[bytes]c��dSr r4r5s  rr%r%]s��>A�crr
�str | bytes�list[str] | list[bytes]c��|sAt|t��r tj�d��}ntj}	tj|��}n#t$rgcYSwxYwtj||��S�N�ASCII)	�
isinstancer6r!�curdir�encode�listdir�OSError�fnmatch�filter)r+r0�namess   rr%r%_s���� ��g�u�%�%�	 ��i�&�&�w�/�/�G�G��i�G���
�7�#�#���������	�	�	������>�%��)�)�)s�A�A)�(A)c���|s#tj�|��r|gSn@tj�tj�||����r|gSgSr )r!r"r(r'r*)r+r,s  rr)r)msd�����7�=�=��!�!�	��:��	��7�?�?�2�7�<�<���:�:�;�;�	��:��
�Ir�
Iterator[str]c��dSr r4r5s  rr$r$}s��<?�Cr�Iterator[bytes]c��dSr r4r5s  rr$r$s��BE�#r�Iterator[str | bytes]c#�nK�t|��sJ�|dd�V�t|��Ed{V��dS)Nr)r�	_rlistdirr5s  rr$r$�sT������ � � � � �
�"�1�"�+������!�!�!�!�!�!�!�!�!�!�!rc��dSr r4�r+s rrMrM�s��25�#rc��dSr r4rOs rrMrM�s��69�crc#�K�|sAt|t��r tj�d��}ntj}	tj|��}n#t$rYdSwxYw|D]^}|V�|r tj�||��n|}t|��D]$}tj�||��V��%�_dSr<)
r>r6r!r?r@rArBr"r*rM)r+rE�xr"�ys     rrMrM�s������ ��g�u�%�%�	 ��i�&�&�w�/�/�G�G��i�G���
�7�#�#���������������
�%�%������+2�9�r�w�|�|�G�Q�'�'�'����4���	%�	%�A��'�,�,�q�!�$�$�$�$�$�$�	%�	%�%s�A�
A*�)A*z([*?[])s([*?[])rc��t|t��rt�|��duSt�|��duSr )r>r6�magic_check_bytes�search�magic_check)rs rr&r&�sF���!�U���1� �'�'��*�*�$�6�6��!�!�!�$�$�D�0�0rc�D�t|t��r|dkS|dkS)Ns**z**)r>r6)r0s rrr�s)���'�5�!�!���%����$��rc���tj�|��\}}t|t��rt
�d|��}nt�d|��}||zS)zEscape all special characters.s[\1]z[\1])r!r"�
splitdriver>r6rU�subrW)r�drives  rrr�sd���g�(�(��2�2�O�E�8��(�E�"�"�6�$�(�(��8�<�<����?�?�7�H�5�5���8��r)F)rrrrrr)rrrrrr)r+rr0r1rr2)r+r	r0r6rr7)r+r
r0r9rr:)r+rr0r1rrG)r+r	r0r6rrI)r+r
r0r9rrK)r+rrrG)r+r	rrI)r+r
rrK)rr9rr)r0r9rr)�__doc__�
__future__rrCr!�re�collections.abcrr�typingrrr�	_typeshedr	r
r�__all__rr
rr%r)r$rM�compilerWrUr&rrr4rr�<module>res'����#�"�"�"�"�"�����	�	�	�	�	�	�	�	�.�.�.�.�.�.�.�.�2�2�2�2�2�2�2�2�2�2��=�<�<�<�<�<�<�<�<�<�<�
%�
%�
%��6�6�6�6�6������$.�.�.�.�H
�;�;�;�
��;�	�A�A�A�
��A�*�*�*�*�	�	�	� 
�?�?�?�
��?�	�E�E�E�
��E�"�"�"�"�
�5�5�5�
��5�	�9�9�9�
��9�%�%�%�%�$�b�j��#�#���B�J�z�*�*��1�1�1�1�����	�	�	�	�	r

?>