HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /proc/1991110/cwd/usr/lib/python3.11/test/libregrtest/__pycache__/
Upload File :
Current File : //proc/1991110/cwd/usr/lib/python3.11/test/libregrtest/__pycache__/utils.cpython-311.pyc
�

*�Kg���x�ddlZddlZddlZddlZddlmZd�Zd�Zd�Z	dd�Z
d	�Zdad
�Z
d�Zdad�Zd
�Zd�ZdS)�N)�supportc���tj|dz��}t|d��\}}t|d��\}}t|d��\}}g}|r|�d|z��|r|�d|z��|r9|r|�d|z��n|�d||dzzz��|sd|zS|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�partss     �-/usr/lib/python3.11/test/libregrtest/utils.py�format_durationrs
��	
��7�S�=�	!�	!�B���T�"�"�K�G�R��g�r�*�*��G�W��G�R�(�(�N�E�7��E��(�
���Y��&�'�'�'��)�
���X��'�(�(�(��=��	=��L�L��G�+�,�,�,�,�
�L�L��w��d��':�;�<�<�<�����|���"�1�"�I�E��8�8�E�?�?��c��|sdSt|��D]2\}}tj�|��\}}|dkr|||<�3dS)Nz.py)�	enumerate�os�path�splitext)�names�idx�name�basename�exts     r�removepyr!s`�������u�%�%�"�"�	��T���(�(��.�.�
��#��%�<�<�!�E�#�J��"�"rc�*�|dkrd||fzSd||fzS)N�z%d %sz%d %ss�)�n�words  r�countr%*s)���A�v�v��!�T��"�"��1�d�)�#�#r�F�c
��d|z}ttjd�d�t	|��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.
    rc3�4K�|]}t|��V��dS�N)�str)�.0�elts  r�	<genexpr>zprintlist.<locals>.<genexpr>;s(���� ?� ?�c��S��� ?� ?� ?� ?� ?� ?r)�initial_indent�subsequent_indent)�fileN)�print�textwrap�fillr�sorted)�x�width�indentr1�blankss     r�	printlistr:1sq���6�\�F�	�(�-���� ?� ?�V�A�Y�Y� ?� ?� ?�?�?��'-��I�I�I�������rc�.�tj|��dSr*)r�
print_warning)�msgs rr<r<@s����#�����rc�P�dt_tjd��tj}	tj��tjjt_t|��tj���|t_dS#|t_wxYw)NTzUnraisable exception)	r�environment_alteredr<�sys�stderr�flush_std_streams�orig_stderr�orig_unraisablehook�flush)�
unraisable�
old_stderrs  r�regrtest_unraisable_hookrHGs���"&�G����0�1�1�1���J� ��!�#�#�#��*�6��
��J�'�'�'��
��������
�
�
��Z��
����s�AB�B%c�@�tjatt_dSr*)r@�unraisablehookrDrHr"rr�setup_unraisable_hookrKUs���,��1�C���rc�j�dt_tjd|jj����t
j}	tj��tjjt
_t|��t
j�
��|t
_dS#|t
_wxYw)NTzUncaught thread exception: )rr?r<�exc_type�__name__r@rArBrC�orig_threading_excepthookrE)�argsrGs  r�regrtest_threading_excepthookrQ^s���"&�G����P��
�8N�P�P�Q�Q�Q���J� ��!�#�#�#��*�6��
�!�$�'�'�'��
��������
�
�
��Z��
����s�AB$�$B2c�4�ddl}|jat|_dS)Nr)�	threading�
excepthookrOrQ)rSs r�setup_threading_excepthookrUls%������ )� 4��8�I���rc�>�tj���D]}t|d��r|`�tjtjtjtjfD]}|�|�	���	tjd}|j
���n#t$rYnwxYw	tjd}|�
��n#t$rYnwxYw	tjd}|j���n#t$rYnwxYw	tjd}|���n#t$rYnwxYw	tjd}|���n#t$rYnwxYw	tjd}|���n#t$rYnwxYw	tjd}|���n#t$rYnwxYw	tjd	}	|	j���n#t$rYnwxYw	tjd
}
|
���n#t$rYnwxYw	tjd}d|_n#t$rYnwxYw	tjd}|���n#t$rYnwxYw	tjd
}
|
jD]}|���
dS#t$rYdSwxYw)N�__warningregistry__zdistutils.dir_util�re�	_strptimezurllib.parsezurllib.request�	linecache�	mimetypes�filecmp�struct�doctest�ctypes�typing)r@�modules�values�hasattrrW�stdoutrA�
__stdout__�
__stderr__rE�
_path_created�clear�KeyError�purge�_regex_cache�clear_cache�
urlcleanup�
clearcache�_default_mime_types�_cache�_clearcache�master�_reset_cache�	_cleanups)�mod�stream�distutils_dir_utilrXrY�urllib_parse�urllib_requestrZr[r\r]r^r_r`�fs               r�clear_cachesr{ss����{�!�!�#�#�(�(���3�-�.�.�	(��'���:�s�z�3�>�3�>�J�������L�L�N�N�N��1� �[�)=�>��	�(�.�.�0�0�0�0���
�
�
���
����
�
�[��
��	���
�
�
�
���
�
�
���
����
'��K��,�	�	��$�$�&�&�&�&���
�
�
���
����
#��{�>�2��	� � �"�"�"�"���
�
�
���
����
$���%5�6��	�!�!�#�#�#�#���
�
�
���
����
��K��,�	�	���������
�
�
���
����
(��K��,�	�	�%�%�'�'�'�'���
�
�
���
����
��+�i�(��	����������
�
�
���
����
���X�&��	���������
�
�
���
����
��+�i�(��������
�
�
���
����
���X�&��	���������
�
�
���
����
���X�&���!�	�	�A�
�A�C�C�C�C�	�	���
�
�
����
���s��<B(�(
B5�4B5�9C � 
C-�,C-�1D�
D*�)D*�.E�
E"�!E"�&F
�
F�F�G�
G�G�G=�=
H
�	H
�H:�:
I�I�I2�2
I?�>I?�J�
J*�)J*�.K�
K"�!K"�&L�
L�L)r&r'N)r�os.pathrr@r3�testrrrr%r:r<rDrHrKrOrQrUr{r"rr�<module>r~s�����������
�
�
�
��������������2"�"�"�$�$�$���������� � � �2�2�2�!�� � � �9�9�9�a�a�a�a�ar