Yohohohohohooho | Sanrei Aya
Sanrei Aya


Server : LiteSpeed
System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : elvh3918 ( 1528)
PHP Version : 8.2.31
Disable Function : mail
Directory :  /proc/self/root/usr/local/lib/python3.9/site-packages/kombu/utils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/usr/local/lib/python3.9/site-packages/kombu/utils/__pycache__/text.cpython-39.pyc
a

��Sh��@s�dZddlmZddlmZddlmZmZddlm	Z	d!dd�Z
d"d
ddd
d�dd�Zd#d
dddd�dd�Zd
dd�dd�Z
d$d
ddd
d
dd�dd�Zd%d
d
d
dd�dd�Zd S)&zText Utilities.�)�annotations)�SequenceMatcher)�Iterable�Iterator)�version_info_t�csd��fdd�|D��S)z2Escape string for use within a regular expression.rc3s6|].}|��s|�vr|n|dkr&dnd|VqdS)�z\000�\N)�isalnum)�.0�c��white��:/usr/local/lib/python3.9/site-packages/kombu/utils/text.py�	<genexpr>s�zescape_regex.<locals>.<genexpr>)�join)�prrr
r�escape_regex
s�r�333333�?�strz
Iterable[str]�floatzIterator[tuple[float, str]])�needle�haystack�	min_ratio�returnccs0|D]&}td||���}||kr||fVqdS)zVFuzzy match: iteratively.

    Yields
    ------
        Tuple: of ratio and key.
    N)r�ratio)rrr�keyrrrr�fmatch_itersrz
str | NonecCs8ztt|||�dd�ddWSty2YdS0dS)z'Fuzzy match - Find best match (scalar).T)�reverser�N)�sortedr�
IndexError)rrrrrr�fmatch_best#s���r#r)�srcCsvt|�d��}t|jt�r<t|j|jgt|dd���R�}|j	sr|j
rrd|j
vrrtt|dd��|j
�d��}|S)z-Convert version string to version info tuple.�.�N�-r�)�_unpack_version�split�
isinstance�microrr�major�minor�_splitmicro�serial�releaselevel�list)r$�vrrr�version_string_as_tuple-s" r4z	str | int)r-r.r,r1r0rcCstt|�t|�|||�S)N)r�int)r-r.r,r1r0rrrr)9sr)ztuple[int, str, str])r,r1r0rcCsNt|�D]\}}|��sq0qt|p&d�||fSt|d|��||d�|fS)Nr)�	enumerate�isdigitr5)r,r1r0�index�charrrrr/Cs
r/N)r)r)r)rrrr)rr)�__doc__�
__future__r�difflibr�typingrrZkomburrrr#r4r)r/rrrr�<module>s
	

�

Yohohohohohooho | Sanrei Aya