Your IP : 3.144.99.39
�
j f5 � @ s
d Z d d l m Z m Z d d l m Z d Z d Z d Z d Z d Z
d Z e e e e e e
Z e d k s| t
� d d � Z d
d � Z d d
d � Z d d � Z d d � Z d d � Z d d � Z e d d � Z d d � Z d d � Z d d � Z d S) zVarious utility functions.� )�
namedtuple�OrderedDict)�commonprefixT�P � � c C sX t | � | | } | t k rT d | d | � | | t | � | d � f } n | S)Nz%s[%d chars]%s)�len�_PLACEHOLDER_LEN)�s� prefixlenZ suffixlen�skip� r
�2/opt/alt/python34/lib64/python3.4/unittest/util.py�_shorten s 4r c s� t t t | � � } t t t | � � } | t k r: | St | � � t � � � t | � t t } | t k r� t t t | � t k s� t
� t � t | � � t � � f d d � | D� � St � t t � � t � � f d d � | D� � S)Nc 3 s# | ] } � | � d � Vq d S)Nr
)�.0r
)�prefixr r
r � <genexpr>'