Your IP : 216.73.216.213


Current Path : /opt/alt/python37/lib/python3.7/site-packages/py/_log/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/py/_log/__pycache__/warning.cpython-37.pyc

B

���]:
�@s8ddlZddlZGdd�de�Zd
dd�Zddd	�ZdS)�Nc@s$eZdZdd�Zdd�Zdd�ZdS)�DeprecationWarningcCs||_||_||_dS)N)�msg�path�lineno)�selfrrr�r�@/opt/alt/python37/lib/python3.7/site-packages/py/_log/warning.py�__init__szDeprecationWarning.__init__cCsd|j|jd|jfS)Nz	%s:%d: %s�)rrr)rrrr�__repr__szDeprecationWarning.__repr__cCs|jS)N)r)rrrr�__str__
szDeprecationWarning.__str__N)�__name__�
__module__�__qualname__r	rrrrrrrsr�cCs�t|t�rlt�d�}d}|jj�|�dk}x@|rf|j}|j�|�dkrR|rV|}Pnd}|d7}|j}q,Wd}d||f}t||d|d�dS)Nr
���Tz%s (since version %s))�
stacklevel�function)	�
isinstance�str�sys�	_getframe�f_code�co_filename�find�f_back�warn)Zstartversionrrr�frame�level�found�corrr�_apiwarn
s 


r!r
c	CsH|dk	r&tjj�|�}tj�|�j}nZyt�|�}Wnt	k
rRtj
}d}YnX|j}|j}d|krr|d}nd}|�
d�}|r�|��}|�d�s�|�d�r�|dd�}q�|�d�r�|�dd	�}n8|d
kr�ytjd}Wntk
r�d
}YnX|s�|}tj�|�}	t||	|�}
tjjj|
tt|
j�|
jtjjj
�di�d
�dS)Nr
r
z<string>�__file__z.pycz.pyorz	$py.classz.py�__main__rZ__warningsregistry__)�category�filenamer�registry)�pyZstd�inspect�getfile�codeZ
getrawcode�co_firstlinenorr�
ValueError�__dict__�	f_globals�f_lineno�get�lower�endswith�replace�argv�AttributeErrorr�localr�warnings�
warn_explicit�Warningrr�
setdefault)rrrr%r�caller�globals�moduleZfnlrZwarningrrrr#sD





r)rN)r
N)r'rrr!rrrrr�<module>s