%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/apport/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/apport/__pycache__/logging.cpython-312.pyc

�

�!f���~�dZddlZddlZddlZddlZdd�Zdedejdejfd�Z	d�Z
d	�Zd
�Zy)zLegacy logging functions.�Nc��|r5tjjtjd��d��t|�y)z?Log the given string to stdout. Prepend timestamp if requested.z%x %Xz: N)�sys�stdout�write�time�strftime�print)�message�	timestamps  �0/usr/lib/python3/dist-packages/apport/logging.py�logr
	s/����
�
���D�M�M�'�2�3�2�6�7�	�'�N��msg�args�returnc�F�t|g|���tjd�y)z0Print out an error message and exit the program.�N)�errorr�exit�rrs  r�fatalrs��	�#�����H�H�Q�Krc���tjratjjd�tjj||z�tjjd�yy)zPrint out an error message.zERROR: �
N�r�stderrrrs  rrrsH��
�z�z��
�
����#��
�
����t��$��
�
�����rc���tjratjjd�tjj||z�tjjd�yy)zPrint out an warning message.z	WARNING: rNrrs  r�warningrsH��
�z�z��
�
����%��
�
����t��$��
�
�����rc��dtjvstjsyi}t	dd��5}|D]<}|jd�s�|j
�\}}}t|�dz||dd<�>	ddd�tjjd	|d
d�d|d
d�d|dd�d|�d�	�y#1swY�BxYw)zSPrint current memory usage.

    This is only done if $APPORT_MEMDEBUG is set.
    �APPORT_MEMDEBUGNz/proc/self/statuszutf-8)�encoding�Vmg�@���zSize: �VmSizez.1fz
 MB, RSS: �VmRSSz
 MB, Stk: �VmStkz MB @ r)	�os�environrr�open�
startswith�split�intr)�
checkpoint�memstat�status_file�line�field�size�_s       r�memdbgr3&s���
��
�
�*�#�*�*���G�	
�!�G�	4�9���	9�D����t�$�#'�:�:�<� ���a�&)�$�i�&�&8���c�r�
�#�	9�9��J�J���
���"�3�'�z�'�'�2B�3�1G�H���!�#�&�f�Z�L��	<��
9�9�s�B7�*B7�7C)F)
�__doc__r&rr�typingr
�str�Any�NoReturnrrrr3�rr�<module>r:sJ���	�
��
���s��6�:�:��&�/�/����r

Zerion Mini Shell 1.0