HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/thread-self/root/opt/saltstack/salt/lib/python3.10/__pycache__/reprlib.cpython-310.pyc
o

�N�g��@s\dZgd�ZddlZddlmZddlmZd
dd�ZGd	d
�d
�Zdd�Z	e�Z
e
jZdS)zGRedo the builtin repr() (representation) but with limits on most sizes.)�Repr�repr�recursive_repr�N)�islice)�	get_ident�...cs�fdd�}|S)zGDecorator to make a repr function return fillvalue for a recursive callcsXt�����fdd�}t�d�|_t�d�|_t�d�|_t�d�|_t�di�|_|S)Nc	sJt|�t�f}|�vr
�S��|�z�|�}W��|�|S��|�w�N)�idr�add�discard)�self�key�result)�	fillvalue�repr_running�
user_function��-/opt/saltstack/salt/lib/python3.10/reprlib.py�wrappers


�z<recursive_repr.<locals>.decorating_function.<locals>.wrapper�
__module__�__doc__�__name__�__qualname__�__annotations__)�set�getattrrrrrr)rr�r)rrr�decorating_functionsz+recursive_repr.<locals>.decorating_functionr)rrrrrr	src@s~eZdZdd�Zdd�Zdd�Zddd	�Zd
d�Zdd
�Zdd�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�ZdS) rcCsFd|_d|_d|_d|_d|_d|_d|_d|_d|_d|_	d|_
dS)N�����()�maxlevel�maxtuple�maxlist�maxarray�maxdict�maxset�maxfrozenset�maxdeque�	maxstring�maxlong�maxother)rrrr�__init__&s
z
Repr.__init__cCs|�||j�Sr)�repr1r#)r�xrrrr3sz	Repr.reprcCsRt|�j}d|vr|��}d�|�}t|d|�r#t|d|�||�S|�||�S)N� �_Zrepr_)�typer�split�join�hasattrr�
repr_instance)rr0�level�typename�partsrrrr/6s

z
Repr.repr1�c
s�t|�}|dkr
|r
d}n,|d�|j���fdd�t||�D�}	||kr*|	�d�d�|	�}|dkr9|r9||}d|||fS)Nrr�csg|]}�|���qSrr)�.0�elem��newlevelr/rr�
<listcomp>Gsz'Repr._repr_iterable.<locals>.<listcomp>�, z%s%s%s)�lenr/r�appendr5)
rr0r8�left�rightZmaxiterZtrail�n�s�piecesrr?r�_repr_iterable@s
zRepr._repr_iterablecCs|�||dd|jd�S)N�(�)�,)rJr$�rr0r8rrr�
repr_tupleMszRepr.repr_tuplecC�|�||dd|j�S)N�[�])rJr%rNrrr�	repr_listP�zRepr.repr_listcCs,|sd|jSd|j}|�|||d|j�S)Nzarray('%s')z
array('%s', [�]))ZtypecoderJr&)rr0r8Zheaderrrr�
repr_arraySs

zRepr.repr_arraycC�$|sdSt|�}|�||dd|j�S)Nzset()�{�})�_possibly_sortedrJr(rNrrr�repr_setYsz
Repr.repr_setcCrW)Nzfrozenset()zfrozenset({z}))rZrJr)rNrrr�repr_frozenset_s�zRepr.repr_frozensetcCrP)Nzdeque([rU)rJr*rNrrr�
repr_dequefrTzRepr.repr_dequecCs�t|�}|dkr
dS|dkrdS|d}|j}g}tt|�|j�D]}|||�}||||�}	|�d||	f�q!||jkrC|�d�d�|�}
d|
fS)	Nrz{}z{...}r<z%s: %srrBz{%s})rCr/rrZr'rDr5)rr0r8rGr@r/rIr
ZkeyreprZvalreprrHrrr�	repr_dictis


zRepr.repr_dictcCs�t�|d|j��}t|�|jkrJtd|jdd�}td|jd|�}t�|d|�|t|�|d��}|d|�d|t|�|d�}|S�Nr��r)�builtinsrr+rC�max�rr0r8rH�i�jrrr�repr_strxs&$z
Repr.repr_strcCsht�|�}t|�|jkr2td|jdd�}td|jd|�}|d|�d|t|�|d�}|Sr_)rbrrCr,rcrdrrr�repr_int�s
$z
Repr.repr_intcCs�zt�|�}Wntyd|jjt|�fYSwt|�|jkrHtd|jdd�}td|jd|�}|d|�d|t|�|d�}|S)Nz<%s instance at %#x>rr`rar)	rbr�	Exception�	__class__rr	rCr-rcrdrrrr7�s�$zRepr.repr_instanceN)r;)rrrr.rr/rJrOrSrVr[r\r]r^rgrhr7rrrrr$s



	rcCs&zt|�WStyt|�YSwr)�sortedri�list)r0rrrrZ�s

�rZ)r)r�__all__rb�	itertoolsr�_threadrrrrZZaReprrrrrr�<module>s
s