File: //lib64/python3.8/__pycache__/warnings.cpython-38.opt-1.pyc
U
e5dL @ s d Z ddlZddddddd d
gZd<ddZd=ddZd
d Zdd ZeZdd ZeZ dd Z
dedddfddZeddfddZ
dd Zdd ZG dd deZdd Zd d! Zd"d# Zd$d% Zd&d' Zd(d) Zd>d+dZd?d,dZG d-d. d.eZG d/d
d
eZd0d1 Zz0dd2lmZm Z m!Z!mZmZm"Z" e Z#e!Z$d3Z%W n2 e&k
rn g Zd4Z#i Z$d*a'd5d6 Z"dZ%Y nX eej( e%se)ed7sed4e*d8d*d9 e
d:e*d*d; e
d:e+d*d; e
d:e,d*d; e
d:e-d*d; [%dS )@z&Python part of the warnings subsystem. Nwarn
warn_explicitshowwarning
formatwarningfilterwarningssimplefilter
resetwarningscatch_warningsc C s t | |||||}t| dS )7Hook to write a warning to a file; replace if you like.N)WarningMessage_showwarnmsg_impl)messagecategoryfilenamelinenofilelinemsg r /usr/lib64/python3.8/warnings.pyr
s c C s t | |||d|}t|S ).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| }z|| W n tk
rJ Y nX d S N)r sysstderr_formatwarnmsgwriteOSError)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 rzdd 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 linecachegetline Exceptionstripsourcetracemalloc
is_tracingget_object_traceback) r r sr"