/opt/cloudlinux/venv/lib/python3.11/site-packages/pydocstyle/__pycache__
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/pydocstyle/__pycache__/utils.cpython-311.pyc (2353B)
f d Z ddlZddlZddlmZmZ ddlmZmZm Z ej
e Z ej
d ZdedefdZd ed
edee eef fdZded
edefdZdedefdZdS )zGeneral shared utilities. N)teezip_longest)AnyIterableTuplez[\W_]+stringreturnc , | S )z5Return True iff the string contains only whitespaces.)stripr s E/opt/cloudlinux/venv/lib/python3.11/site-packages/pydocstyle/utils.pyis_blankr s ||~~ 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 )r r ab_s r
pairwiser s7 x==DAqQ
Aq!}5555r r r c t t | | D ]\ }\ }}||k r|c S t t | t | S )ztReturn the length of the longest common prefix of a and b.
>>> common_prefix_length('abcd', 'abce')
3
) enumeratezipminlen)r r commoncacbs r
common_prefix_lengthr! s_ &c!Qii00 R
88MMM s1vvs1vvr c 8 t d| S )z2Strip string from any non-alphanumeric characters. )NON_ALPHANUMERIC_STRIP_REsubr s r
strip_non_alphanumericr&