ok
Direktori : /proc/self/root/opt/alt/python38/lib64/python3.8/__pycache__/ |
Current File : //proc/self/root/opt/alt/python38/lib64/python3.8/__pycache__/warnings.cpython-38.opt-1.pyc |
U .��c�L � @ s� d Z ddlZddddddd d gZd<dd�Zd=dd�Zd d� Zdd� ZeZdd� ZeZ dd� Z dedddfdd�Zeddfdd�Z dd� Zdd � ZG dd� de�Zdd� Zd d!� Zd"d#� Zd$d%� Zd&d'� Zd(d)� Zd>d+d�Zd?d,d�ZG d-d.� d.e�ZG d/d � d e�Zd0d1� Zz0dd2lmZm Z m!Z!mZmZm"Z" e Z#e!Z$d3Z%W n2 e&k �rn g Zd4Z#i Z$d*a'd5d6� Z"dZ%Y nX eej(� e%�s�e)ed7��s�ed4e*d8d*d9� e d:e*d*d;� e d:e+d*d;� e d:e,d*d;� e d:e-d*d;� [%dS )@z&Python part of the warnings subsystem.� N�warn� warn_explicit�showwarning� formatwarning�filterwarnings�simplefilter� resetwarnings�catch_warningsc C s t | |||||�}t|� dS )�7Hook to write a warning to a file; replace if you like.N)�WarningMessage�_showwarnmsg_impl)�message�category�filename�lineno�file�line�msg� r �-/opt/alt/python38/lib64/python3.8/warnings.pyr s c C s t | |||d|�}t|�S )�.Function to format a warning the standard way.N)r �_formatwarnmsg_impl)r r r r r r r r r r s c C sP | j }|d kr tj}|d kr d S t| �}z|�|� W n tk rJ Y nX d S �N)r �sys�stderr�_formatwarnmsg�write�OSError)r r �textr r r r s r c C s� | j j}| j� d| j� d|� d| j� d�}| jd krpzdd l}|�| j| j�}W qv tk rl d }d }Y qvX n| j}|r�|� � }|d| 7 }| j d k �r�zdd l}W n tk r� d}d }Y n4X |�� }z|� | j �}W n tk r� d }Y nX |d k �r�|d7 }|D ]t}|d|j|jf 7 }z$|d k �rB|�|j|j�}nd }W n tk �rb d }Y nX |�r|� � }|d | 7 }�qn|�s�||� d �7 }|S )N�:z: � r z %s Tz-Object allocated at (most recent call last): z File "%s", lineno %s z %s z<: Enable tracemalloc to get the object allocation traceback )r �__name__r r r r � linecache�getline� Exception�strip�source�tracemalloc� is_tracing�get_object_traceback) r r �sr"