AlkantarClanX12
Current Path : /opt/alt/python310/lib64/python3.10/__pycache__/ |
Current File : //opt/alt/python310/lib64/python3.10/__pycache__/warnings.cpython-310.opt-2.pyc |
o 6��f�L � @ s� d dl Z g d�Zd<dd�Zd=dd�Zdd� Zd d � ZeZdd� ZeZd d� Z de dd dfdd�Ze d dfdd�Zdd� Z dd� ZG dd� de�Zdd� Zdd� Zdd � Zd!d"� Zd#d$� Zd%d&� Zd>d(d)�Z d?d*d+�ZG d,d-� d-e�ZG d.d/� d/e�Zd0d1� Zzd d2lmZmZm Z mZmZm!Z! eZ"e Z#d3Z$W n e%y� g Zd4Z"i Z#d'a&d5d6� Z!dZ$Y nw ee j'� e$s�e(e d7�s�ed4e)d8d'd9� ed:e)d'd;� ed:e*d'd;� ed:e+d'd;� ed:e,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/python310/lib64/python3.10/warnings.pyr s r c C s t | |||d |�}t|�S r )r �_formatwarnmsg_impl)r r r r r r r r r r s r c C sN | j }|d u rtj}|d u rd S t| �}z|�|� W d S ty& Y d S w 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 u r6zdd l}|�| j| j�}W n ty5 d }d }Y nw | j}|rE|� � }|d| 7 }| j d ur�zdd l}W n ty] d}d }Y nw |�� }z|� | j �}W n tyu d }Y nw |d ur�|d7 }|D ]5}|d|j|jf 7 }z|d ur�|�|j|j�}nd }W n ty� d }Y nw |r�|� � }|d | 7 }q�|S |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 # sb " � �� �����r c C sd zt }W n ty Y nw |tur,t|�std��|| 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 sN zt }W n ty Y t| �S w |tur#|| 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 sV |s|r dd l }|r|�||j�}nd }|r|�|�}nd }t| |||||d� d S )Nr ��append)�re�compile�I�_add_filter)�actionr r �moduler r6 r7 r r r r � s r c C s t | d |d ||d� d S )Nr5 )r: )r; r r r6 r r r r � s r c G sP | szt �|� W n ty Y nw t �d|� n |t vr#t �|� t� d S )Nr )�filters�remove� ValueError�insertr6 �_filters_mutated)r6 �itemr r r r: � s � r: c C s g t d d �<