ok
Direktori : /proc/thread-self/root/opt/alt/python36/lib64/python3.6/unittest/__pycache__/ |
Current File : //proc/thread-self/root/opt/alt/python36/lib64/python3.6/unittest/__pycache__/util.cpython-36.pyc |
3 � f9 � @ s� d Z ddlmZmZ ddlmZ dZdZdZdZ dZ dZee e e e e Zedks\t �dd � Zd d� Zd d d�Zdd� Zdd� Zdd� Zdd� Zedd�Zdd� Zdd� Zdd� ZdS )!zVarious utility functions.� )� namedtuple�OrderedDict)�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 �2/opt/alt/python36/lib64/python3.6/unittest/util.py�_shorten s &r c s� t tt| ��} ttt| ��}|tkr(| S t| �� t� ��t|� t t }|t kr�tt t |� tk spt �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>'