Vc!RP ddlZgdZd+dZd,dZdZdZeZdZeZdZ d e d dd fd Z e dd fd Z d Z dZGddeZdZdZdZdZdZdZd-dZ d.dZGddeZGddeZdZefejdd Zd!Z dd"l m!Z!m"Z"m#Z#mZmZm$Z$e"Z%e#Z&d#Z'n#e($rgZ!d$Z%iZ&da)d%Z$d Z'YnwxYweej*e'sSe+ed&sGe d$e,d'd(e d)e,d*e d)e-d*e d)e.d*e d)e/d*['dS)/N)warn warn_explicit showwarning formatwarningfilterwarnings simplefilter resetwarningscatch_warningscN t||||||}t|dSN)WarningMessage_showwarnmsg_impl)messagecategoryfilenamelinenofilelinemsgs !/usr/lib64/python3.11/warnings.pyrr s0A (HfdD I ICccJ t||||d|}t|Sr )r _formatwarnmsg_impl)rrrrrrs rrrs*8 (HfdD I IC s # ##rc|j}|tj}|dSt|} ||dS#t $rYdSwxYwr )rsysstderr_formatwarnmsgwriteOSError)rrtexts rrrss 8D z   F #  D  4      sA AAc|jj}|jd|jd|d|jd}|j: ddl}||j|j}n#t$rd}d}Yn wxYw|j}|r| }|d|zz }|j ddl }| } | |j }n&#t$rd}YnwxYw#t$rd}d}YnwxYw|x|dz }|D]o}|d|jd |jdz } |!||j|j}nd}n#t$rd}YnwxYw|r| }|d |zz }pn |s||d z }|S) 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 Exceptionstripsource tracemalloc is_tracingget_object_traceback) rrsr%rr*tracingtbframes rrr#sL|$H L D D3: D D D DS[ D D DA x      $$S\3:>>DD   DIII   x zz|| X_ z$-     ",,..G  55cjAA       GBBB   - A AA + +78  $(00NN#    DDD +::<r?s rrrs && **Wbd++ F##66&IIIIIIrc2 t|d|d||dS)Nr=)rB)rCrrr>s rrrs*hfVDDDDDDrc|s< tj|n#t$rYnwxYwtjd|n|tvrtj|t dS)Nr)filtersremove ValueErrorinsertr>_filters_mutated)r>items rrBrBs !  N4     D q$ w  ! N4 s  &&c< gtdd<tdSr )rGrKrrr r s$KGAAAJrceZdZ dS) _OptionErrorN)r$ __module__ __qualname__rNrrrPrPs6DrrPc|D]E} t|#t$r&}td|tjYd}~>d}~wwxYwdS)NzInvalid -W option ignored:)r) _setoptionrPprintrr)argsargrs r_processoptionsrXs|FF F sOOOO F F F .#* E E E E E E E E E FFFs AAAc||d}t|dkrtd|t|dkr(|dt|dk(d|D\}}}}}t |}t |}|s|rddl}|r||}|r||dz}|rF t|}|dkrtn*#ttf$rtd|dwxYwd}t|||||dS) Nr"ztoo many fields (max 5): r;c6g|]}|SrN)r().0r-s r z_setoption..s61A1A1A56231A1A1Arrz\Zzinvalid lineno ) splitlenrPr> _getaction _getcategoryr?escapeintrI OverflowErrorr)rWpartsrCrrrDrr?s rrTrTs IIcNNE 5zzA~ClCCABBB e**q. R e**q.1A1A:?1A1A1A-FGXvv   FH%%H& %))G$$ +6""U*  J[[Fz !   !M* J J J,ff>??T I J67Hff=====s "C??%D$cz|sdS|dkrdSdD]}||r|cStd|)Ndefaultallalways)rgriignorerDonceerrorzinvalid action: ) startswithrP)rCas rr`r`sc y 'xx G <<   HHH  ,vv7 8 88rc|stSd|vrddl}|}nO|d\}}} t|dd|g}n!#t$rt d|dwxYw t ||}n!#t$rt d|dwxYwt|tst d||S)N.rzinvalid module name: zunknown warning category: zinvalid warning category: ) Warningbuiltins rpartition __import__ ImportErrorrPgetattrAttributeError issubclass)rmklassrD_cats rraras  (P#..s335 P64w77AA P P P,FFDEE4 O PSa SSSlXXGHHdRS c7 # #IlXXGHHH JsAA!%A66Bc, |jj}d|vod|vS)N importlib _bootstrap)f_code co_filename)r0rs r_is_internal_framers$P|'H ( " ?|x'??rch |j}|'t|r|j}|t||Sr )f_backr)r0s r_next_external_framersJE LE  25 9 9   25 9 9 Lrc  t|tr|j}|t}t|trt |ts4t dt |j |dks!ttj drtj |}nAtj d}t|dz D]}t|}|t|j}|jj}|j}n #t$rtj}d}d}YnwxYwd|vr |d} nd} |di} t+||||| | ||dS)Nz/category must be a Warning subclass, not '{:s}'rrr$z__warningregistry__) isinstancerq __class__ UserWarningtyperxr4formatr$rr _getframerangerrI f_globalsrrf_lineno__dict__ setdefaultr) rr stacklevelr)r0xglobalsrrrDregistrys rrrsD'7##%$ x & &F:h+H+HF%%+VDNN,C%D%DFF F ? %0q1A1ABB %M*--EEM!$$E:a<(( % %,U33%$$%/<+ ,W$!!"7<z.pyversionrrjrlrkrrirDrgzUnrecognized action (z) in warnings.filters: )rclowerget_filters_versionclearrrqstrrrGmatchrx defaultactionr%getlines onceregistry RuntimeErrorr r7)rrrrrDrmodule_globalsr)r keyrLrCrr|modlnr%oncekeyaltkeys rrrGs[[F !([ "##;    % ' !CRC[F||Iq!!%55/.'7##$7||$(7## 6 "C||C$(!S#r  CIIdOO  x % %   IIf-- 1W "   E  x000    "   G $ $  F ! W 8  8   !$ <<    F 9  lvvtt  (Hff E ECrc$eZdZdZ ddZdZdS)r )rrrrrrr)Nc||_||_||_||_||_||_||_|r|jnd|_dSr ) rrrrrrr)r$_category_name)selfrrrrrrr)s r__init__zWarningMessage.__init__sN         3;Eh//rc Xd|jd|jd|jd|jd|jd S)Nz {message : z , category : z , filename : z , lineno : z , line : })rrrrr)rs r__str__zWarningMessage.__str__s=$(LLL$2E2E2E$(MMM4;;; K Lr)NNN)r$rQrR_WARNING_DETAILSrrrNrrr r sR*BF#' F F F FLLLLLrr c8eZdZ dddeddddZdZdZdZdS) r FNr)recordrDrCrrr>c ||_|tjdn||_d|_| d|_dS||||f|_dS)NwarningsF)_recordrmodules_module_entered_filter)rrrDrCrrr>s rrzcatch_warnings.__init__sV  28Ls{:..f   >DLLL"Hff=DLLLrcg}|jr|d|jtjdur|d|jzt |j}|dd|dS)Nz record=Truerz module=%r(z, ))rr>rrrrr$join)rrVnames r__repr__zcatch_warnings.__repr__s} < ' KK & & & r2)rlogs r __enter__zcatch_warnings.__enter__s = ?6=>> >  , #}QQQ/  %%''' L4!%!? < ( $, ' ' < C-0ZDL *(,|'EDL $J4rc|jstd|z|j|j_|j|j|j_|j|j_dS)Nz%Cannot exit %r without entering first) rrrrrGrKrrr)rexc_infos r__exit__zcatch_warnings.__exit__sa} OFMNN N#}  %%'''#'#4  )-)? &&&r)r$rQrRrqrrrrrNrrr r st$"'twq>>>>>"222*@@@@@rr z@{name!r} is deprecated and slated for removal in Python {remove})_versionc |dd|d}|dd|ks|dd|kr#|ddkr|d|d}t|||| }t|td dS) Nrrpralphaz% was slated for removal after Python z alpha)rrH)r)rrrDeprecationWarning)rrrHrremove_formattedrs r _deprecatedrs!)11fQi11! v48BQB<6#94hqkW>T4VV>NVVV3nn$/?n@@ S$333333rcPdjdg}jPddlddl}fd}|d||t |z }d|d}t|td dS) Nz coroutine 'z' was never awaited rc3~KtjD]$\}}}||}||||fV%dSr )reversed cr_originr&)rrfuncnamercoror%s rextractz*_warn_unawaited_coroutine..extract s^.6t~.F.F 9 9*&( ((6::488888 9 9rz-Coroutine created at (most recent call last) r;r#r)rrr)) rRrr% tracebackr> format_listlistrrstriprRuntimeWarning)r msg_linesrrrr%s` @r_warn_unawaited_coroutiners>d'>>>I ~<######## 9 9 9 9 9 9 IJJJY**4 ??;;; '')   # #D ) )C ~!DAAAAAAr)rG_defaultaction _onceregistryrrrKTrgctdz adS)Nr)rrNrrrKrK1sArgettotalrefcount__main__)rrDr>rj)rr>)NNr )NrN)NNNN)0r__all__rrrrr2r7r9rrqrrrBr r'rPrXrTr`rarrrrobjectr r _DEPRECATED_MSG version_inforr _warningsrGrrrKrr_warnings_defaultsrur warnoptionshasattrrPendingDeprecationWarning ImportWarningResourceWarningrNrrrs,  . . . $$$$    8 8 8 v &$ $ $ $$&1!J!J!J!JF#*!EEEEE         9   FFF>>>8999*@@@ &#&#&#&#R>BDDDDNLLLLLVLLL,I@I@I@I@I@VI@I@I@XU-43CS44444(BBB<BBBBBBBBBBBBBBBB"M L   GML  C 73* + +Cy+=( 4 4 4 4 X(:1EEEE X(A!LLLL X a@@@@ XBBBBsB((B=<B=