AlkantarClanX12
Current Path : /lib64/python3.8/unittest/__pycache__/ |
Current File : //lib64/python3.8/unittest/__pycache__/util.cpython-38.opt-1.pyc |
U e5d_ � @ s� d Z ddlmZmZ ddlmZ dZdZdZdZ dZ dZee e e e e Zdd � 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/lib64/python3.8/unittest/util.py�_shorten s &r c s� t tt| ��} ttt| ��}|tkr(| S t| �� t� ��t|� t t }|t krxt � t|�� t � �fdd�| D ��S t � tt �� t � �fdd�| D ��S )Nc 3 s | ]}� |�d � V qd S �Nr ��.0r ��prefixr r r � <genexpr>'