HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3.8/test/libregrtest/__pycache__/utils.cpython-38.pyc
U

2�f>�@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