|
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/opt/alt/python311/lib64/python3.11/unittest/__pycache__/ |
�
���B��� � � d Z ddlmZmZ ddlmZ dZdZdZdZ dZ
dZee ez ez ez e
z z
Zd� Z
d � Zdd�Zd� Zd
� Zd� Zd� Z edd� � Zd� Zd� ZdS )zVarious utility functions.� )�
namedtuple�Counter)�commonprefixT�P � � c � � t | � � |z
|z
}|t k r(d| d |� || t | � � |z
d � fz } | S )Nz%s[%d chars]%s)�len�_PLACEHOLDER_LEN)�s� prefixlen� suffixlen�skips �4/opt/alt/python311/lib64/python3.11/unittest/util.py�_shortenr sW � ��q�6�6�I�� �)�D�������*�9�*�
�t�Q�s�1�v�v� �7I�7J�7J�5K�L�L���H� c � ��� t t t | � � � � } t t t | � � � � }|t
k r| S t
| � � �t �� � �t
|�z
t z t z z
}|t k r2t �t |� � �t ��fd�| D � � � � S t �t t � � �t ��fd�| D � � � � S )Nc 3 �2 �K � | ]}�|�d � z V � �d S �N� ��.0r �prefixr
s ��r � <genexpr>z'_common_shorten_repr.<locals>.<genexpr>'