Server : LiteSpeed
System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : nandedex ( 1060)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /opt/cppython/lib/python3.8/test/libregrtest/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //opt/cppython/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�� )�math�ceil�divmod�append�join)Zseconds�msZminutesZhours�parts�r
�5/opt/cppython/lib/python3.8/test/libregrtest/utils.py�format_durations"rcCs>|sdSt|�D](\}}tj�|�\}}|dkr|||<qdS)Nz.py)�	enumerate�os�path�splitext)�names�idx�name�basename�extr
r
r�removepy!srcCs$|dkrd||fSd||fSdS)N�z%d %sz%d %ssr
)�nZwordr
r
r�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)�.0Zeltr
r
r�	<genexpr>;szprintlist.<locals>.<genexpr>)�initial_indent�subsequent_indent)�fileN)�print�textwrap�fillr
�sorted)�x�width�indentr%Zblanksr
r
r�	printlist1s��r-cCst�|�dSr)r�
print_warning)�msgr
r
rr.@sr.)rrN)rZos.pathr�sysr'�testrrrrr-r.r
r
r
r�<module>s	


F1le Man4ger