????

Your IP : 18.222.156.75


Current Path : /lib/python3.10/test/libregrtest/__pycache__/
Upload File :
Current File : //lib/python3.10/test/libregrtest/__pycache__/utils.cpython-310.pyc

o

�*�g�@s�ddlZddlZddlZddlZddlmZdd�Zdd�Zdd�Z	ddd�Z
d
d�Zdadd�Z
dd�Zdd�Zdadd�Zdd�Zdd�ZdS)�N)�supportcCs�t�|d�}t|d�\}}t|d�\}}t|d�\}}g}|r'|�d|�|r0|�d|�|rG|r<|�d|�n|�d||d�|sMd|S|dd	�}d
�|�S)Ng@�@i��<z%s hourz%s minz%s secz%.1f secz%s ms�� )�math�ceil�divmod�append�join)�seconds�ms�minutes�hours�parts�r�-/usr/lib/python3.10/test/libregrtest/utils.py�format_durations"
rcCs>|sdSt|�D]\}}tj�|�\}}|dkr|||<qdS)Nz.py)�	enumerate�os�path�splitext)�names�idx�name�basename�extrrr�removepy!s��rcCs |dkr
d||fSd||fS)N�z%d %sz%d %ssr)�n�wordrrr�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)�.0�eltrrr�	<genexpr>;s�zprintlist.<locals>.<genexpr>)�initial_indent�subsequent_indent)�fileN)�print�textwrap�fillr
�sorted)�x�width�indentr*�blanksrrr�	printlist1s�
�r3cCst�|�dSr#)r�
print_warning)�msgrrrr4@sr4cCs0tjdur
tj��tjdurtj��dSdSr#)�sys�stdout�flush�stderrrrrr�flush_std_streamsGs



�r:cCsJdt_td�tj}zt�tjt_t|�tj��W|t_dS|t_w)NTzUnraisable exception)	r�environment_alteredr4r6r9r:�
__stderr__�orig_unraisablehookr8)�
unraisable�
old_stderrrrr�regrtest_unraisable_hookNsr@cCstjatt_dSr#)r6�unraisablehookr=r@rrrr�setup_unraisable_hook\s
rBcCsTdt_td|jj���tj}zt�tjt_t	|�tj�
�W|t_dS|t_w)NTzUncaught thread exception: )rr;r4�exc_type�__name__r6r9r:r<�orig_threading_excepthookr8)�argsr?rrr�regrtest_threading_excepthookesrGcCsddl}|jat|_dS)Nr)�	threading�
excepthookrErG)rHrrr�setup_threading_excepthookss
rJcCs`tj��D]	}t|d�r|`qtjtjtjtjfD]
}|dur#|�	�qztjd}Wn	t
y4Ynw|j��ztjd}Wn	t
yJYnw|�
�ztjd}Wn	t
y_Ynw|j��ztjd}Wn	t
yuYnw|��ztjd}Wn	t
y�Ynw|��ztjd}Wn	t
y�Ynw|��ztjd}Wn	t
y�Ynw|��ztjd	}	Wn	t
y�Ynw|	j��ztjd
}
Wn	t
y�Ynw|
��ztjd}Wn	t
y�Ynwd|_ztjd}Wn
t
�y	Ynw|��ztjd
}
Wn
t
�yYnw|
jD]}|��q#t��dS)N�__warningregistry__zdistutils.dir_util�re�	_strptimezurllib.parsezurllib.request�	linecache�	mimetypes�filecmp�struct�doctest�ctypes�typing)r6�modules�values�hasattrrKr7r9�
__stdout__r<r8�KeyError�
_path_created�clear�purge�_regex_cache�clear_cache�
urlcleanup�
clearcache�_default_mime_types�_cache�_clearcache�master�_reset_cache�	_cleanupsr�
gc_collect)�mod�stream�distutils_dir_utilrLrM�urllib_parse�urllib_requestrNrOrPrQrRrSrT�frrr�clear_cacheszs�
���
��
�����
����

rn)r!r"N)r�os.pathrr6r,�testrrrr r3r4r=r:r@rBrErGrJrnrrrr�<module>s$	


Page not found | The NCLEX Doctor

Page not found!

Sorry, this page is not available...