ok
Direktori : /opt/alt/python35/lib64/python3.5/unittest/__pycache__/ |
Current File : //opt/alt/python35/lib64/python3.5/unittest/__pycache__/util.cpython-35.pyc |
B�Ma9 � @ 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 sU t | � | | } | t k rQ d | d | � | | t | � | d � f } | S)Nz%s[%d chars]%s)�len�_PLACEHOLDER_LEN)�s� prefixlenZ suffixlen�skip� r �2/opt/alt/python35/lib64/python3.5/unittest/util.py�_shorten s 1r 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>'