python (3.12.0)

(root)/
lib/
python3.12/
__pycache__/
warnings.cpython-312.pyc

ˑeT8dZddlZgdZd0dZd1dZdZdZeZdZeZ	d	Z
d
ed
ddfdZeddfd
Z
dZdZGddeZdZdZdZdZdZdZdZdZd2dddZ		d3dZGdd eZGd!d"eZd#Zefej@d$d%Z!d&Z"	dd'l#m$Z$m%Z%m&Z&mZmZm'Z'e%Z(e&Z)d(Z*eejZe*sAe.ed+s8ed)e/d,d-e
d.e/d/e
d.e0d/e
d.e1d/e
d.e2d/[*y#e+$rgZ$d)Z(iZ)da,d*Z'dZ*YkwxYw)4z&Python part of the warnings subsystem.N)warn
warn_explicitshowwarning
formatwarningfilterwarningssimplefilter
resetwarningscatch_warningsc:t||||||}t|y)7Hook to write a warning to a file; replace if you like.N)WarningMessage_showwarnmsg_impl)messagecategoryfilenamelinenofilelinemsgs       </BuggyBox/python/3.12.0/bootstrap/lib/python3.12/warnings.pyrr
s
(HfdD
ICcc8t||||d|}t|S).Function to format a warning the standard way.N)r
_formatwarnmsg_impl)rrrrrrs      rrrs!
(HfdD
ICs##rc|j}|tj}|yt|}	|j	|y#t
$rYywxYwN)rsysstderr_formatwarnmsgwriteOSError)rrtexts   rrrsP88D|zz<
#D


4

sA	AAcR|jj}|jd|jd|d|jd}|j
,	ddl}|j|j|j}n|j
}|r|j}|d|zz
}|j	ddl}|j}	|j|j}|u|dz
}|D]i}|d|jd	|jdz
}	'|j|j|j}nd}|sR|j}|d
|zz
}k|S|s||dz
}|S#t$rd}d}YwxYw#t$rd}YwxYw#t$rd}d}YwxYw#t$rd}YowxYw)N:z: 
rz  %s
Tz-Object allocated at (most recent call last):
z  File "z
", lineno z    %s
z<: Enable tracemalloc to get the object allocation traceback
)r__name__rrrr	linecachegetline	Exceptionstripsourcetracemalloc
is_tracingget_object_traceback)	rrsr'rr,tracingtbframes	         rrr#s||$$HLL>3::,b
"S[[M	DA
xx	$$S\\3::>Dxxzz|	X_
zz	",,.G
 55cjjA>
AAA

+78  ,(00N#::<Dd**A

+"
H
XJ+,
-AHa	DI		0

	GB	0! D sH*E!.FE4+F!
E10E14FF
FFF&%F&c	t}|tur`t|std||j|j
|j|j|j|jyt|y#t$rYwxYw)rz:warnings.showwarning() must be set to a function or methodN)r_showwarning_origcallable	TypeErrorrrrrrr	NameErrorr)rsws  r_showwarnmsgr9`s~

&&B<!566
s{{CLL#,,

xx
#c

sA<<	BBc	t}|tur>||j|j|j|j
|jSt|S#t$r
Yt|SwxYw)r)	r_formatwarning_origrrrrrr7r)rfws  rrruso:
((ckk3<<llCJJ:
:s##
s##
sA	A/.A/Fc|dvs
Jd|t|tsJdt|tsJdt|tsJdt|tsJdt|t
r|dk\sJd|s|rdd	l}|rj||j}nd	}|rj|}nd	}t||||||
y	)aInsert an entry into the list of warnings filters (at the front).

    'action' -- one of "error", "ignore", "always", "default", "module",
                or "once"
    'message' -- a regex that the warning message must match
    'category' -- a class that the warning must be a subclass of
    'module' -- a regex that the module name must match
    'lineno' -- an integer line number, 0 matches all warnings
    'append' -- if true, append to the list of filters
    errorignorealwaysdefaultmoduleonceinvalid action: zmessage must be a stringzcategory must be a classz#category must be a Warning subclasszmodule must be a stringrlineno must be an int >= 0Nappend)

isinstancestrtype
issubclassWarningintrecompileI_add_filter)actionrrrDrrIrPs       rrrs@7=?@gs#?%??h%A'AAh(O*OOfc"=$==fc"v{('(&**Wbdd+
F#66&Ircz|dvs
Jd|t|tr|dk\sJdt|d|d||y)aInsert a simple entry into the list of warnings filters (at the front).

    A simple filter matches all modules and messages.
    'action' -- one of "error", "ignore", "always", "default", "module",
                or "once"
    'category' -- a class that the warning must be a subclass of
    'lineno' -- an integer line number, 0 matches all warnings
    'append' -- if true, append to the list of filters
    r?rFrrGNrH)rJrOrS)rTrrrIs    rrrsR@7=?@fc"v{('(hfVDrc|s7	tj|tjd|ty|tvrtj|ty#t$rYTwxYw)Nr)filtersremove
ValueErrorinsertrI_filters_mutated)rIitems  rrSrSs`	NN4 	q$wNN4 
		sA""	A.-A.c*gtddty)zAClear the list of warning filters, so that no filters are active.N)rWr[rrr	r	sGAJrceZdZdZy)_OptionErrorz,Exception used by option processing helpers.N)r&
__module____qualname____doc__r^rrr`r`s6rr`c|D]}	t|y#t$r&}td|tjYd}~<d}~wwxYw)NzInvalid -W option ignored:)r)
_setoptionr`printrr)argsargrs   r_processoptionsrisHF	FsOF	F.#**EE	Fs	A?Ac4|jd}t|dkDrtd|t|dkr |jdt|dkr |Dcgc]}|j	c}\}}}}}t|}t
|}|s|rddl}|rj|}|rj|dz}|r	t|}|dkrtnd}t|||||ycc}w#ttf$rtd|dwxYw)Nr$ztoo many fields (max 5): r=rz\Zzinvalid lineno )
splitlenr`rIr*
_getaction_getcategoryrPescaperOrY
OverflowErrorr)	rhpartsr/rTrrrDrrPs	         rreres&IIcNE
5zA~CABB

e*q.
Re*q.;@1A56231A-FGXvv

FH%H&))G$
6"U*
	J[Fz  
67Hff='1AM*	Jf>?TI	Js C3
C88Dch|sy|dk(rydD]}|j|s|cStd|)NrCallrB)rCrBrArDrEr@rF)
startswithr`)rTas  rrnrnsA
x
G<<Hv7
88rc<|stSd|vrddl}|}n%|jd\}}}	t|dd|g}	t
||}t|tstd||S#t$rtd|dwxYw#t$rtd|dwxYw)N.rzinvalid module name: zunknown warning category: zinvalid warning category: )	rNbuiltins
rpartition
__import__ImportErrorr`getattrAttributeErrorrM)rmklassrD_cats      rroros
(#..s35	P64w7ASac7#XGHHJ	PFDE4O	PSXGHdRSsA&B&A?Bcd|vxrd|vS)N	importlib
_bootstrapr^)rs r_is_internal_filenamers("?|x'??rc,tfd|DS)Nc3@K|]}j|ywr)ru).0prefixrs  r	<genexpr>z'_is_filename_to_skip.<locals>.<genexpr>sLvx""6*Ls)any)rskip_file_prefixess` r_is_filename_to_skiprsL9KLLLrc@t|jjS)zFSignal whether the frame is an internal CPython implementation detail.)rf_codeco_filename)r2s r_is_internal_framers !9!9::rc|j}|jt|jjx}st	||r=|j}|/t|jjx}r0t	||r=|S)zBFind the next frame that doesn't involve Python or user internals.)f_backrrrr)r2rrs   r_next_external_framerskLLE

!ell.F.F"F(G +=>
!ell.F.F"F(G +=>Lrr^)rc
&t|tr|j}|t}t|trt|ts-t
djt	|jt|tst
d|rtd|}	|dksttjdrtj|}n<tjd}t|dz
D]}t||}|t |j"}|j$j&}|j(}	d|vr|d}
nd}
|j-d	i}t/||||	|
|||y#t $rtj*}d}d}	YPwxYw)
z:Issue a warning, or maybe ignore it or raise an exception.Nz/category must be a Warning subclass, not '{:s}'z+skip_file_prefixes must be a tuple of strs.rrr&z<string>__warningregistry__)rJrN	__class__UserWarningrLrMr6formatr&tuplemaxrr	_getframerangerrY	f_globalsrrf_lineno__dict__
setdefaultr)rr
stacklevelr+rr2xglobalsrrrDregistrys            rrr(sz'7#$$x&:h+H%%+VDN,C,C%DF	F(%0EFFJ'
 ?0q1ABMM*-EMM!$E:a<(
%,U4FG=$$
%//<<++W$!!"7<H'8Xvvx6#,,sA-E0
E00FFczt|}|!|xsd}|ddjdk(r|dd}|i}|jddtk7r|j	t|d<t|trt|}|j}n
|}||}|||f}	|j|	rytD]K}
|
\}}}
}}||j|st||
s,||j|s@|dk(s||k(sKnt}|dk(ryddl
}|j|||dk(r||dk(r)d	||	<||f}tj|ryd	t|<nI|d
k(rnC|dk(r"d	||	<||df}|j|ryd	||<n|dk(rd	||	<nt!d
|d
t#|||||}t%|y)Nz	<unknown>z.pyversionrrAr@rErrBrDrCzUnrecognized action (z) in warnings.filters:
 )rOlowerget_filters_versionclearrJrNrKrrWmatchrM
defaultactionr'getlinesonceregistryRuntimeErrorr
r9)rrrrrDrmodule_globalsr+r"keyr\rTrrmodlnr'oncekeyaltkeys                   rrrVs[F
~(["#;%'CR[F||Iq!%55.'7#7|$$7#6
"C||C$(!S#r
[CIIdOx%
[CIIf-
1W"


x0



"G$ !W	8		8	
!$<<	9	
t	(Hff
ECrc"eZdZdZ		ddZdZy)r
)rrrrrrr+Nc||_||_||_||_||_||_||_|r|j|_yd|_yr)	rrrrrrr+r&_category_name)selfrrrrrrr+s        r__init__zWarningMessage.__init__sJ 
 
		3;h//rcd|jd|jd|jd|jd|jdS)Nz{message : z
, category : z
, filename : z, lineno : z	, line : })rrrrr)rs r__str__zWarningMessage.__str__s0$(LL$2E2E$(MM4;;		K	Lr)NNN)r&rarb_WARNING_DETAILSrrr^rrr
r
s *BF#'	FLrr
c8eZdZdZdddeddddZdZdZd	Zy)
r
a9A context manager that copies and restores the warnings filter upon
    exiting the context.

    The 'record' argument specifies whether warnings should be captured by a
    custom implementation of warnings.showwarning() and be appended to a list
    returned by the context manager. Otherwise None is returned by the context
    manager. The objects appended to the list are arguments whose attributes
    mirror the arguments to showwarning().

    The 'module' argument is to specify an alternative module to the module
    named 'warnings' and imported under that name. This argument is only useful
    when testing the warnings module itself.

    If the 'action' argument is not None, the remaining arguments are passed
    to warnings.simplefilter() as if it were called immediately on entering the
    context.
    FNr)recordrDrTrrrIc||_|tjdn||_d|_|d|_y||||f|_y)zSpecify whether to record warnings and if an alternative module
        should be used other than sys.modules['warnings'].

        For compatibility with Python 3.0, please consider all arguments to be
        keyword-only.

        NwarningsF)_recordrmodules_module_entered_filter)rrrDrTrrrIs       rrzcatch_warnings.__init__sD28.s{{:.f
>DL"Hff=DLrcg}|jr|jd|jtjdur|jd|jzt|j}|ddj|dS)Nzrecord=Truerz	module=%r(z, ))rrIrrrrLr&join)rrgnames   r__repr__zcatch_warnings.__repr__sf<<KK
&<<s{{:66KKdll23Dz""411rc4|jrtd|zd|_|jj|_|jdd|j_|jj|jj|_|jj|_|jt|j|jrDg}|j|j_|jj|j_|Sy)NzCannot enter %r twiceT)rrrrW_filtersr[r_showwarningrrrrrIr4)rlogs  r	__enter__zcatch_warnings.__enter__s==6=>>
,,
#}}Q/%%' LL44!%!?!?<<#$,,'<<C-0ZZDLL*(,||'E'EDLL$Jrc|jstd|z|j|j_|jj|j|j_|j|j_y)Nz%Cannot exit %r without entering first)	rrrrrWr[rrr)rexc_infos  r__exit__zcatch_warnings.__exit__s^}}FMNN#}}%%'#'#4#4 )-)?)?&r)	r&rarbrcrNrrrrr^rrr
r
s,$"'twq>"2*@rr
z@{name!r} is deprecated and slated for removal in Python {remove})_versionc|dd|d}|dd|kDs|dd|k(r|ddk7r|d|d	}t||j||
}t|tdy)a;Warn that *name* is deprecated or should be removed.

    RuntimeError is raised if *remove* specifies a major/minor tuple older than
    the current Python version or the same version but past the alpha.

    The *message* argument is formatted with *name* and *remove* as a Python
    version (e.g. "3.11").

    rrxrNralphaz% was slated for removal after Python z alpha)rrX)r)rrrDeprecationWarning)rrrXrremove_formattedrs      r_deprecatedrs!)AfQi[1!v8BQ<6#9hqkW>T=>N=OvV3nn$/?n@S$3rc*djdg}jAddlddl}fd}|j	d||jt
|z
}dj|jd}t|td	y)
Nzcoroutine 'z' was never awaited
rc3~KtjD] \}}}j||}||||f"ywr)reversed	cr_originr()rrfuncnamercoror's    rextractz*_warn_unawaited_coroutine.<locals>.extractsG.6t~~.F
9*&( ((6:488
9s:=z-Coroutine created at (most recent call last)
r=r%r)rrr+)rbrr'	tracebackrIformat_listlistrrstriprRuntimeWarning)r	msg_linesrrrr's`    @r_warn_unawaited_coroutiners
d''((=>I~~!#	9	IJY**4	?;;	
'')

#
#D
)C	~!DAr)rW_defaultaction
_onceregistryrrr[TrCctdz
ay)Nr)rr^rrr[r[@s
Argettotalrefcount__main__)rrDrIrA)rrI)NNr)NrN)NNNN)3rcr__all__rrrrr4r9r;rrNrrrSr	r)r`rirernrorrrrrrobjectr
r
_DEPRECATED_MSGversion_inforr	_warningsrWrrr[rr_warnings_defaultsr|rwarnoptionshasattrrPendingDeprecationWarning
ImportWarningResourceWarningr^rr<module>rs,
.
$


8
v &$$$&1!JF#*!EE 
	9	
F>89*@M;
,#!,#^>BDNLVL,I@VI@XU-43CSCS4(B<BB"M L  3*+y+=(	4X(:1EX(A!LX
a@XB5GMLsDDD