Hacked By AnonymousFox

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

�

�܋f�	���dZddlZddlZddlmZmZddlmZmZm	Z	ej
e��Zej
d��Zdedefd�Zd	ed
edee	eeffd�Zded
edefd�Zdedefd�ZdS)zGeneral shared utilities.�N)�tee�zip_longest)�Any�Iterable�Tuplez[\W_]+�string�returnc�,�|���S)z5Return True iff the string contains only whitespaces.)�strip�rs �a/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pydocstyle/utils.py�is_blankrs���|�|�~�~����iterable�
default_valuec�j�t|��\}}t||��}t|||���S)ztReturn pairs of items from `iterable`.

    pairwise([1, 2, 3], default_value=None) -> (1, 2) (2, 3), (3, None)
    )�	fillvalue)r�nextr)rr�a�b�_s     r
�pairwisers7���x�=�=�D�A�q��Q�
���A��q�!�}�5�5�5�5rrrc��tt||����D]\}\}}||kr|cS�tt|��t|����S)ztReturn the length of the longest common prefix of a and b.

    >>> common_prefix_length('abcd', 'abce')
    3

    )�	enumerate�zip�min�len)rr�common�ca�cbs     r
�common_prefix_lengthr! s_��&�c�!�Q�i�i�0�0�������R�
��8�8��M�M�M���s�1�v�v�s�1�v�v���rc�8�t�d|��S)z2Strip string from any non-alphanumeric characters.�)�NON_ALPHANUMERIC_STRIP_RE�subrs r
�strip_non_alphanumericr&-s��$�(�(��V�4�4�4r)�__doc__�logging�re�	itertoolsrr�typingrrr�	getLogger�__name__�log�compiler$�str�boolrr�intr!r&�rr
�<module>r4s-��������	�	�	�	�&�&�&�&�&�&�&�&�'�'�'�'�'�'�'�'�'�'��g���!�!��'�B�J�y�1�1���S��T�����

6��
6��
6��e�C��H�o��
6�
6�
6�
6�
�C�
�C�
�C�
�
�
�
�5�3�5�3�5�5�5�5�5�5r

Hacked By AnonymousFox1.0, Coded By AnonymousFox