HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //proc/self/root/usr/local/lib/python3.9/site-packages/kombu/utils/__pycache__/text.cpython-39.pyc
a

X>h��@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
	

�