ok
Direktori : /opt/alt/python36/lib64/python3.6/__pycache__/ |
Current File : //opt/alt/python36/lib64/python3.6/__pycache__/warnings.cpython-36.pyc |
3 $j�a8H � @ 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�ZdZy0dd0lmZm Z m!Z!mZmZm"Z" e Z#e!Z$d1ZW n. e%k �rf g Zd2Z#i Z$d*a&d3d4� Z"Y nX eej'� e�s e(e)gZ*e*j+e,� xe*D ]Z-e d5e-d6� �q�W ej.j/Z/e/d*k�r�d7Z0ne/�r�d2Z0nd5Z0e e0e1d*d8� e2ed9��r�d:Z3nd5Z3e e3e4d*d8� [dS )?z&Python part of the warnings subsystem.� N�warn� warn_explicit�showwarning� formatwarning�filterwarnings�simplefilter� resetwarnings�catch_warningsc C s t | |||||�}t|� dS )z7Hook 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/python36/lib64/python3.6/warnings.pyr s c C s t | |||d|�}t|�S )z.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| �}y|j|� 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 sL d| j | j| jj| jf }| jd kr`ydd l}|j| j | j�}W qf tk r\ d }d }Y qfX n| j}|r~|j � }|d| 7 }| j d k �rHydd l}|j| j �}W n tk r� d }Y nX |d k �rH|d7 }xx|D ]p}|d|j |jf 7 }y$|d k �r |j|j |j�}nd }W n tk �r* d }Y nX |r�|j � }|d| 7 }q�W |S )Nz%s:%s: %s: %s r z %s z.Object allocated at (most recent call first): z File "%s", lineno %s z %s ) r r r �__name__r r � linecache�getline� Exception�strip�source�tracemalloc�get_object_traceback)r �sr r r"