AlkantarClanX12

Your IP : 3.147.205.19


Current Path : /opt/alt/python37/lib64/python3.7/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/__pycache__/warnings.cpython-37.opt-2.pyc

B

YI~dpN�@s�ddlZdddddddd	gZd;d
d�Zd<dd�Zdd
�Zdd�ZeZdd�ZeZdd�Z	de
dddfdd�Ze
ddfdd�Zdd�Z
dd�ZGdd�de�Zdd�Zdd �Zd!d"�Zd#d$�Zd%d&�Zd'd(�Zd=d*d�Zd>d+d�ZGd,d-�d-e�ZGd.d	�d	e�Zd/d0�Zy0dd1lmZmZm Z mZmZm!Z!eZ"e Z#d2Z$Wn2e%k
�rjgZd3Z"iZ#d)a&d4d5�Z!dZ$YnXeej'�e$�s�e(ed6��s�ed3e)d7d)d8�ed9e)d)d:�ed9e*d)d:�ed9e+d)d:�ed9e,d)d:�[$dS)?�N�warn�
warn_explicit�showwarning�
formatwarning�filterwarnings�simplefilter�
resetwarnings�catch_warningscCst||||||�}t|�dS)N)�WarningMessage�_showwarnmsg_impl)�message�category�filename�lineno�file�line�msg�r�-/opt/alt/python37/lib64/python3.7/warnings.pyr
scCst||||d|�}t|�S)N)r
�_formatwarnmsg_impl)rr
rrrrrrrrscCsP|j}|dkr tj}|dkr dSt|�}y|�|�Wntk
rJYnXdS)N)r�sys�stderr�_formatwarnmsg�write�OSError)rr�textrrrrsrc		Cs�|jj}|j�d|j�d|�d|j�d�}|jdkrpyddl}|�|j|j�}Wqvtk
rld}d}YqvXn|j}|r�|�	�}|d|7}|j
dk	�r�yddl}Wntk
r�d}d}Yn4X|��}y|�
|j
�}Wntk
r�d}YnX|dk	�r�|d7}x�|D]t}|d|j|jf7}y$|dk	�rD|�|j|j�}nd}Wntk
�rdd}YnX|�r|�	�}|d	|7}�qWn|�s�||�d
�7}|S)N�:z: �
rz  %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__rrrr�	linecache�getline�	Exception�strip�source�tracemalloc�
is_tracing�get_object_traceback)	rr
�srrr$�tracing�tb�framerrrr#sR"






rcCsdyt}Wntk
rYn<X|tk	rXt|�s6td��||j|j|j|j|j	|j
�dSt|�dS)Nz:warnings.showwarning() must be set to a function or method)r�	NameError�_showwarning_orig�callable�	TypeErrorrr
rrrrr)r�swrrr�_showwarnmsg`sr0cCsHyt}Wntk
rYn$X|tk	r@||j|j|j|j|j�St|�S)N)	rr+�_formatwarning_origrr
rrrr)r�fwrrrrus
r�FcCsT|s|rddl}|r$|�||j�}nd}|r8|�|�}nd}t||||||d�dS)Nr)�append)�re�compile�I�_add_filter)�actionrr
�modulerr4r5rrrr�scCst|d|d||d�dS)N)r4)r8)r9r
rr4rrrr�scGsR|s6yt�|�Wntk
r&YnXt�d|�n|tkrHt�|�t�dS)Nr)�filters�remove�
ValueError�insertr4�_filters_mutated)r4�itemrrrr8�s
r8cCsgtdd�<t�dS)N)r;r?rrrrr�sc@seZdZdS)�_OptionErrorN)r�
__module__�__qualname__rrrrrA�srAcCsRxL|D]D}yt|�Wqtk
rH}ztd|tjd�Wdd}~XYqXqWdS)NzInvalid -W option ignored:)r)�
_setoptionrA�printrr)�args�argrrrr�_processoptions�s

rHc	Cs�|�d�}t|�dkr$td|f��xt|�dkr>|�d�q&Wdd�|D�\}}}}}t|�}t|�}|sp|rxddl}|r�|�|�}|r�|�|�d}|r�yt|�}|dkr�t	�Wq�t	t
fk
r�td	|f�d�Yq�Xnd}t|||||�dS)
Nr�ztoo many fields (max 5): %rr3cSsg|]}|���qSr)r")�.0r'rrr�
<listcomp>�sz_setoption.<locals>.<listcomp>rz\Zzinvalid lineno %r)�split�lenrAr4�
_getaction�_getcategoryr5�escape�intr=�
OverflowErrorr)rG�partsr9rr
r:rr5rrrrD�s0

rDcCsB|sdS|dkrdSxdD]}|�|�r|SqWtd|f��dS)N�default�all�always)rTrV�ignorer:�once�errorzinvalid action: %r)�
startswithrA)r9�arrrrN�s

rNcCs�|stSd|krddl}|}nJ|�d�\}}}yt|dd|g�}Wn$tk
rftd|f�d�YnXyt||�}Wn$tk
r�td|f�d�YnXt|t�s�td|f��|S)N�.rzinvalid module name: %rzunknown warning category: %rzinvalid warning category: %r)	�Warning�builtins�
rpartition�
__import__�ImportErrorrA�getattr�AttributeError�
issubclass)r
�m�klassr:�_�catrrrrO�s"
rOcCs|jj}d|kod|kS)N�	importlib�
_bootstrap)�f_code�co_filename)r*rrrr�_is_internal_framesrmcCs&|j}x|dk	r t|�r |j}qW|S)N)�f_backrm)r*rrr�_next_external_frames
ro�c	Csvt|t�r|j}|dkrt}t|t�r0t|t�sDtd�t|�j���yZ|dks\t	t
�d��rht
�|�}n4t
�d�}x(t|d�D]}t
|�}|dkr�t�q�WWntk
r�t
j}d}YnX|j}|j}d|kr�|d}nd}|�d�}	|	�r|	��}
|
�d��rP|	dd�}	n>|dk�rFyt
jd	}	Wntk
�rDd}	YnX|	�sP|}	|�d
i�}t|||	|||||�dS)Nz/category must be a Warning subclass, not '{:s}'rprz<string>�__file__z.pyc����__main__rZ__warningregistry__)�
isinstancer]�	__class__�UserWarning�typerdr.�formatrrmr�	_getframe�rangeror=�__dict__�	f_globals�f_lineno�get�lower�endswith�argvrc�
setdefaultr)rr
�
stacklevelr#r*�x�globalsrr:rZfnl�registryrrrrsL






cCs�t|�}|dkr8|pd}|dd���dkr8|dd�}|dkrDi}|�dd�tkrd|��t|d<t|t�r~t|�}|j}n|}||�}|||f}	|�|	�r�dSx^t	D]R}
|
\}}}
}}|dks�|�
|�r�t||
�r�|dks�|�
|�r�|dks�||kr�Pq�Wt}|dk�rdSddl
}|�||�|dk�r2|�|dk�rfd	||	<||f}t�|��r\dSd	t|<nf|d
k�rrnZ|dk�r�d	||	<||df}|�|��r�dSd	||<n$|dk�r�d	||	<ntd
||
f��t|||||�}t|�dS)Nz	<unknown>���z.py�versionrrWrYrXrprVr:rTz1Unrecognized action (%r) in warnings.filters:
 %s)rQrr~�_filters_version�clearrtr]�strrur;�matchrd�
defaultactionr�getlines�onceregistry�RuntimeErrorr
r0)rr
rrr:r��module_globalsr#r�keyr@r9rrh�modZlnrZoncekeyZaltkeyrrrrSsj














c@s"eZdZdZddd�Zdd�ZdS)r
)rr
rrrrr#NcCs>||_||_||_||_||_||_||_|r4|jnd|_dS)N)	rr
rrrrr#r�_category_name)�selfrr
rrrrr#rrr�__init__�szWarningMessage.__init__cCsd|j|j|j|j|jfS)NzD{message : %r, category : %r, filename : %r, lineno : %s, line : %r})rr�rrr)r�rrr�__str__�szWarningMessage.__str__)NNN)rrBrC�_WARNING_DETAILSr�r�rrrrr
�s

r
c@s4eZdZddd�dd�Zdd�Zdd	�Zd
d�ZdS)r	FN)�recordr:cCs(||_|dkrtjdn||_d|_dS)N�warningsF)�_recordr�modules�_module�_entered)r�r�r:rrrr��szcatch_warnings.__init__cCsPg}|jr|�d�|jtjdk	r4|�d|j�t|�j}d|d�|�fS)Nzrecord=Truer�z	module=%rz%s(%s)z, )r�r4r�rr�rwr�join)r�rF�namerrr�__repr__�s

zcatch_warnings.__repr__cCs~|jrtd|��d|_|jj|_|jdd�|j_|j��|jj|_|jj|_|j	rvg}|j
|j_|jj|j_|SdSdS)NzCannot enter %r twiceT)r�r�r�r;�_filtersr?r�_showwarningrr�r4r,)r��logrrr�	__enter__�s




zcatch_warnings.__enter__cGs>|jstd|��|j|j_|j��|j|j_|j|j_dS)Nz%Cannot exit %r without entering first)	r�r�r�r�r;r?r�rr)r��exc_inforrr�__exit__�s


zcatch_warnings.__exit__)rrBrCr�r�r�r�rrrrr	�s	cszd�j�d�g}�jdk	rVddl�ddl}��fdd�}|�d�||�t|���7}d�|��d�}t	|t
d	�d
�dS)Nzcoroutine 'z' was never awaited
rc3s8x2t�j�D]$\}}}��||�}||||fVqWdS)N)�reversed�	cr_originr )rr�funcnamer)�cororrr�extract�sz*_warn_unawaited_coroutine.<locals>.extractz-Coroutine created at (most recent call last)
r3r�)r
r�r#)rCr�r�	tracebackr4�format_list�listr��rstripr�RuntimeWarning)r��	msg_linesr�r�rr)r�rr�_warn_unawaited_coroutine�s

r�)r;�_defaultaction�
_onceregistryrrr?TrTcCstd7adS)Nrp)r�rrrrr?sr?Zgettotalrefcountrs)r
r:r4rW)r
r4)NN)N)NrpN)NNNN)-r�__all__rrrrr,r0r1rr]rrr8rr!rArHrDrNrOrmrorr�objectr
r	r��	_warningsr;r�r�r?r�r�Z_warnings_defaultsrar��warnoptions�hasattr�DeprecationWarning�PendingDeprecationWarning�
ImportWarning�ResourceWarningrrrr�<module>sf

;
"
	
5
EC