HOME


Mini Shell 1.0
DIR: /snap/core20/current/lib/python3.8/test/libregrtest/__pycache__/
Upload File :
Current File : //snap/core20/current/lib/python3.8/test/libregrtest/__pycache__/utils.cpython-38.pyc
U

���g>�@sZddlZddlZddlZddlZddlmZdd�Zdd�Zdd�Z	ddd�Z
d
d�ZdS)�N)�supportcCs�t�|d�}t|d�\}}t|d�\}}t|d�\}}g}|rN|�d|�|r`|�d|�|r�|rx|�d|�n|�d||d�|s�d|S|dd	�}d
�|�S)Ng@�@i��<z%s hourz%s minz%s secz%.1f secz%s ms�� )�mathZceil�divmod�append�join)ZsecondsZmsZminutesZhours�parts�r�,/usr/lib/python3.8/test/libregrtest/utils.py�format_durations"r
cCs>|sdSt|�D](\}}tj�|�\}}|dkr|||<qdS)Nz.py)�	enumerate�os�path�splitext)�names�idx�name�basenameZextrrr�removepy!srcCs$|dkrd||fSd||fSdS)N�z%d %sz%d %ssr)�nZwordrrr�count*sr�F�cCs:d|}ttjd�dd�t|�D��|||d�|d�dS)z�Print the elements of iterable x to stdout.

    Optional arg width (default 70) is the maximum line length.
    Optional arg indent (default 4) is the number of blanks with which to
    begin each line.
    rcss|]}t|�VqdS�N)�str)�.0Zeltrrr�	<genexpr>;szprintlist.<locals>.<genexpr>)Zinitial_indentZsubsequent_indent)�fileN)�print�textwrapZfillr	�sorted)�x�width�indentr Zblanksrrr�	printlist1s��r'cCst�|�dSr)r�
print_warning)�msgrrrr(@sr()rrN)r�os.pathr�sysr"Ztestrr
rrr'r(rrrr�<module>s