a
XC?h� � @ s\ d Z g d�ZddlZddlmZ ddlmZ d
dd�ZG d 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�...c s � fdd�}|S )zGDecorator to make a repr function return fillvalue for a recursive callc sX t � � �� �fdd�}t�d�|_t�d�|_t�d�|_t�d�|_t�di �|_|S )Nc sL t | �t� f}|�v r� S ��|� z�| �}W ��|� n��|� 0 |S �N)�idr �add�discard)�self�key�result)� fillvalue�repr_running�
user_function� �,/opt/alt/python39/lib64/python3.9/reprlib.py�wrapper s
z