ok
Direktori : /opt/alt/python38/lib64/python3.8/__pycache__/ |
Current File : //opt/alt/python38/lib64/python3.8/__pycache__/warnings.cpython-38.opt-2.pyc |
U .��c�L � @ s� d dl Z dddddddd gZd;d d�Zd<dd�Zdd � Zdd� ZeZdd� ZeZdd� Z de dd dfdd�Ze d dfdd�Zdd� Z dd� ZG dd� de�Zdd� Zdd � Zd!d"� Zd#d$� Zd%d&� Zd'd(� Zd=d*d�Zd>d+d�ZG d,d-� d-e�ZG d.d � d e�Zd/d0� Zz0d d1lmZmZm Z mZmZm!Z! eZ"e Z#d2Z$W n2 e%k �rj g Zd3Z"i Z#d)a&d4d5� Z!dZ$Y nX ee j'� e$�s�e(e d6��s�ed3e)d7d)d8� ed9e)d)d:� ed9e*d)d:� ed9e+d)d:� ed9e,d)d:� [$dS )?� N�warn� warn_explicit�showwarning� formatwarning�filterwarnings�simplefilter� resetwarnings�catch_warningsc C s t | |||||�}t|� d S �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 r )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 r )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 r r% �tracing�tb�framer r r r # sT " � r c C sd zt }W n tk r Y n<X |tk rXt|�s6td��|| j| j| j| j| j | j � d S t| � d S )Nz:warnings.showwarning() must be set to a function or method)r � NameError�_showwarning_orig�callable� TypeErrorr r r r r r r )r �swr r r �_showwarnmsg` s �r1 c C sH zt }W n tk r Y n$X |tk r@|| j| j| j| j| j�S t| �S r ) r r, �_formatwarning_origr r r r r r )r �fwr r r r u s �r � Fc C sT |s|rdd l }|r$|�||j�}nd }|r8|�|�}nd }t| |||||d� d S )Nr ��append)�re�compile�I�_add_filter)�actionr r �moduler r6 r7 r r r r � s c C s t | d |d ||d� d S )Nr5 )r: )r; r r r6 r r r r � s c G sR | s6zt �|� W n tk r& Y nX t �d|� n|t krHt �|� t� d S )Nr )�filters�remove� ValueError�insertr6 �_filters_mutated)r6 �itemr r r r: � s r: c C s g t d d �<