| Server IP : 52.25.153.185 / Your IP : 216.73.217.131 Web Server : Apache System : Linux ip-172-26-6-158 5.10.0-35-cloud-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64 User : daemon ( 1) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3.9/unittest/__pycache__/ |
Upload File : |
a
�:j_ � @ s� d Z ddlmZmZ ddlmZ dZdZdZdZ dZ
dZee e e e e
Zedks\J �dd � Z
d
d� Zdd
d�Zdd� Zdd� Zdd� Zdd� Zedd�Zdd� Zdd� ZdS )zVarious utility functions.� )�
namedtuple�Counter)�commonprefixT�P � � c C sB t | �| | }|tkr>d| d |� || t | �| d � f } | S )Nz%s[%d chars]%s)�len�_PLACEHOLDER_LEN)�s� prefixlenZ suffixlen�skip� r
�#/usr/lib/python3.9/unittest/util.py�_shorten s &r c s� t tt| ��} ttt| ��}|tkr(| S t| �� t� ��t|� t t }|t kr�tt t |� tk spJ �t
� t|�� t � �fdd�| D ��S t
� tt �� t � �fdd�| D ��S )Nc 3 s | ]}� |�d � V qd S �Nr
��.0r
��prefixr r
r � <genexpr>'