eDiVSrSSKr/SQrS2SjrS3SjrSrSr\rSr\r S r S \ S SS 4S jr \ SS 4S jr SrSr"SS\5rSrSrSrSrSrSrSrSrS4SS.SjjrS5Sjr"SS \5r"S!S"\5r"S#S$5rS%r \ 4\RBS&.S'jjr"S(r#SS)K$J%r%J&r&J'r'JrJrJ(r( \&r)\'r*S*r+\"\R\5 \+(d7\/"\S-5(d)\ "S+\0S.SS/9 \ "S0\0SS19 \ "S0\1SS19 \ "S0\2SS19 \ "S0\3SS19 C+g!\,a /r%S+r)0r*Sq-S,r(S r+Ngf=f)6z&Python part of the warnings subsystem.N) warn warn_explicit showwarning formatwarningfilterwarnings simplefilter resetwarningscatch_warnings deprecatedc4[XX#XE5n[U5 g)7Hook to write a warning to a file; replace if you like.N)WarningMessage_showwarnmsg_impl)messagecategoryfilenamelinenofilelinemsgs ./opt/imh/python3.13/lib/python3.13/warnings.pyrr s Hd ICcc4[XX#SU5n[U5$).Function to format a warning the standard way.N)r_formatwarnmsg_impl)rrrrrrs rrrs HdD IC s ##rcURnUc[RnUcg[U5nUR U5 g![ a gf=fN)rsysstderr_formatwarnmsgwriteOSError)rrtexts rrrsP 88D |zz <  # D  4    sA AAcURRnURSURSUSURS3nUR c,SSKnURURUR5nO UR nU(aUR5nUSU-- nURbSSK nUR5(+nURUR5nUbUS- nUHtnUSUR<S UR<S3- nWb'URURUR5nOSnU(dM\UR5nUS U-- nMv U$U(aX!S 3- nU$![a SnSnGNf=f![a SnSnNf=f![a SnSnNf=f![a SnNf=f) N:z:  rz %s Fz-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-suggest_tracemalloctbframes rrr#s||$$H LL>3::,b "S[[M DA xx  $$S\\3::>Dxx zz| X_ zz   *5*@*@*B&B# 55cjjA > A AA78  ,(00N#4::5F':0F)F;F;>FFF$#F$'F87F8; G  G c&[nU[Lae[U5(d [S5eU"URUR UR URURUR5 g[U5 g![a Nf=f)r z:warnings.showwarning() must be set to a function or methodN) r_showwarning_origcallable TypeErrorrrrrrr NameErrorr)rsws r _showwarnmsgr:as   & &B<<!566 s{{CLL#,, xx #  'c    sB BBc[nU[La>U"URURURUR UR 5$[U5$![a Nf=f)r) r_formatwarning_origrrrrrr8r)rfws rr r vsi:  ( (ckk3<<llCJJ: : ) s ##    sA A('A(Fc 4US;a[SU<35e[U[5(d [S5e[U[5(a[ U[ 5(d [S5e[U[5(d [S5e[U[5(d [S5eUS:a [S5eU(dU(aSS KnU(aWRXR5nOS nU(aWRU5nOS n[XX#XES 9 g ) 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 >onceerroralwaysignoremoduledefaultinvalid action: zmessage must be a stringz#category must be a Warning subclasszmodule must be a stringlineno must be an intrlineno must be an int >= 0Nappend) ValueError isinstancestrr7type issubclassWarningintrecompileI _add_filter)actionrrrDrrJrRs rrrsOO+F:677 gs # #233 h % %Z'-J-J=>> fc " "122 fc " "/00 z566&**Wdd+ F#6Irc US;a[SU<35e[U[5(d [S5eUS:a [S5e[ USUSX#S9 g)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@rArBrCrDrErFrGrrHNrI)rKrLrQr7rU)rVrrrJs rrrs\OO+F:677 fc " "/00 z566hfDrcU(d/[R"U5 [R"SU5 O U[;a[R"U5 [ 5 g![a NOf=f)Nr)filtersremoverKinsertrJ_filters_mutated)rJitems rrUrUsV   NN4  q$ w  NN4     sA"" A/.A/c*/[SS&[5 g)zAClear the list of warning filters, so that no filters are active.N)rYr\rrr r sGAJrc\rSrSrSrSrg) _OptionErrorz,Exception used by option processing helpers.r_N)r' __module__ __qualname____firstlineno____doc____static_attributes__r_rrraras6rracUHn[U5 M g![a$n[SU[RS9 SnAM=SnAff=f)NzInvalid -W option ignored:)r) _setoptionraprintrr)argsargrs r_processoptionsrmsA F sO F .#** E E Fs  AAActURS5n[U5S:a[SU<35e[U5S:a"URS5 [U5S:aM"UVs/sHnUR 5PM snup4pVn[ U5n[ U5nU(dU(aSSKnU(aWRU5nU(aWRU5S-nU(a[U5nUS:a[eOSn[X4XVU5 gs snf![[4a [SU<35Sef=f)Nr%ztoo many fields (max 5): r>rz\Zzinvalid lineno ) splitlenrarJr+ _getaction _getcategoryrRescaperQrK OverflowErrorr) rlpartsr0rVrrrDrrRs rriris# IIcNE 5zA~CABB e*q. R e*q.;@1A:?Q23:?1A-FXv  FH%H&))G$ 6"U*  J[Fz   6Hf='1AM* Jf>?T I Js%D)D!D7cU(dgUS:XagSHnURU5(dMUs $ [SU<35e)NrEallrB)rErBrCrDr@rArF) startswithra)rVas rrrrrs@  x G <<  HH v7 88rcZU(d[$SU;aSSKnUnO$URS5up4n[USSU/5n[ X5n[U[5(d[ SU<35eU$![a [ SU<35Sef=f![a [ SU<35Sef=f)N.rzinvalid module name: zunknown warning category: zinvalid warning category: ) rPbuiltins rpartition __import__ ImportErrorragetattrAttributeErrorrO)rmklassrD_cats rrsrss  (#..s35 P64w7ASa c7 # #XGHH J PFDE4 O P SXGHdRSsA1 B1B B*c$SU;=(a SU;$)N importlib _bootstrapr_)rs r_is_internal_filenamers ( " ?|x'??rc.^[U4SjU55$)Nc3F># UHnTRU5v M g7fr)ry).0prefixrs r '_is_filename_to_skip..s!L9Kvx""6**9Ks!)any)rskip_file_prefixess` r_is_filename_to_skiprs L9KL LLrc@[URR5$)zFSignal whether the frame is an internal CPython implementation detail.)rf_code co_filename)r3s r_is_internal_framers !9!9 ::rc"URnUb[URR=n5(d[ X!5(aIURnUb:[URR=n5(aM7[ X!5(aMIU$)zBFind the next frame that doesn't involve Python or user internals.)f_backrrrr)r3rrs r_next_external_framer$sq LLE   !ell.F.F"F( G G  > >    !ell.F.F"F( G G  > > Lrr_)rc n[U[5(a URnUc[n[U[5(a[ U[5(d-[ SR[ U5R55e[U[5(d [ S5eU(a [SU5nUS::d$[[R"S55(a[R"U5nO?[R"S5n[US- 5Hn[XT5nUbM[ e UR"nUR$R&nUR(n SU;aUSn OS n UR-S 05n [/XXXXs5 g![ a [R*nSnSn NOf=f) 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.rzrr'z__warningregistry__)rLrP __class__ UserWarningrNrOr7formatr'tuplemaxrr _getframerangerrK f_globalsrrf_lineno__dict__ setdefaultr) rr stacklevelr,rr3xglobalsrrrDregistrys rrr/sy'7##$$ x & &:h+H+H%%+VDN,C,C%DF F (% 0 0EFFJ'  ?0q1ABBMM*-EMM!$E:a<(,UG=$$)//<<++W$!!"7z.pyversionrrCrAr@rrBrDrEzUnrecognized action (z) in warnings.filters: )r,)rQlowerget_filters_versionclearrLrPrMrrYmatchrO defaultactionr(getlines onceregistry RuntimeErrorrr:)rrrrrDrmodule_globalsr,r#keyr]rVrrmodlnr(oncekeyaltkeys rrr]s[F ~([ "#;   % 'CR[F||Iq!%55.'7##7|$$7# 6 "C||C$(!Sr [CIIdOO x % % [CIIf-- 1W    x0    "   G $ $  ! W 8  8  !$ <<    9  t  HV LCrc,\rSrSrSrSSjrSrSrg)ri)rrrrrrr,NcXlX lX0lX@lXPlX`lXplU(aURUlgSUlgr) rrrrrrr,r'_category_name)selfrrrrrrr,s r__init__WarningMessage.__init__s<       3;h//rc SUR<SUR<SUR<SUR<SUR<S3 $)Nz {message : z , category : z , filename : z , lineno : z , line : })rrrrr)rs r__str__WarningMessage.__str__s0$(LL$2E2E$(MM4;; K Lr)rrrrrrrr,)NNN)r'rcrdre_WARNING_DETAILSrrrgr_rrrrs *BF#' FLrrcB\rSrSrSrSSS\SSS.SjrSrS rS r S r g) r iaA 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)recordrDrVrrrJcXlUc[RSOUUlSUlUcSUlgX4XV4Ulg)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)rrrDrVrrrJs rrcatch_warnings.__init__s> 28.s{{:.f  >DL"f=DLrc"/nUR(aURS5 UR[RSLaURSUR-5 [ U5R nU<SSRU5<S3$)Nz record=Truerz module=%r(z, ))rrJrrrrNr'join)rrknames r__repr__catch_warnings.__repr__sf << KK & < >  ,, #}}Q/  %%' LL44!%!?!? << # $,, ' <<C-0ZZDLL *(,||'E'EDLL $JrcUR(d[SU-5eURURlURR 5 UR URlURURlg)Nz%Cannot exit %r without entering first) rrrrrYr\rrr)rexc_infos r__exit__catch_warnings.__exit__s^}}FMN N#}}  %%'#'#4#4  )-)?)? &r)rrrrrrr) r'rcrdrerfrPrrrrrgr_rrr r s,$"'twq>"2*@rr c N\rSrSrSr\SS.S\S\\S-S\ S S4S jjr S r S r g) r ia"Indicate that a class, function or overload is deprecated. When this decorator is applied to an object, the type checker will generate a diagnostic on usage of the deprecated object. Usage: @deprecated("Use B instead") class A: pass @deprecated("Use g instead") def f(): pass @overload @deprecated("int support is deprecated") def g(x: int) -> int: ... @overload def g(x: str) -> int: ... The warning specified by *category* will be emitted at runtime on use of deprecated objects. For functions, that happens on calls; for classes, on instantiation and on creation of subclasses. If the *category* is ``None``, no warning is emitted at runtime. The *stacklevel* determines where the warning is emitted. If it is ``1`` (the default), the warning is emitted at the direct caller of the deprecated object; if it is higher, it is emitted further up the stack. Static type checker behavior is not affected by the *category* and *stacklevel* arguments. The deprecation message passed to the decorator is saved in the ``__deprecated__`` attribute on the decorated object. If applied to an overload, the decorator must be after the ``@overload`` decorator for the attribute to exist on the overload as returned by ``get_overloads()``. See PEP 702 for details. rrrrrNrreturnc[U[5(d"[S[U5R<35eXlX lX0lg)Nz2Expected an object of type str for 'message', not )rLrMr7rNr'rrr)rrrrs rrdeprecated.__init__0sD'3''DT']E[E[D^_   $rc:^^^ ^ ^ ^ URm URmURm Tc T TlT$[ T[ 5(aSSKnSSKJn TRm URT 5UUU U U 4Sj5n[U5Tl TRm [ T U5(a:T Rm URT 5UU U U 4Sj5n[U5Tl O$URT 5UU U U 4Sj5nUTl T =TlUlT UlT$[T5(a\SSKnSSKnURT5UUU U 4Sj5nUR#T5(aUR%U5nT =TlUlU$['ST<35e)Nr) MethodTypec>UTLa[TTTS-S9 T[RLa T"U/UQ70UD6$UR[RLa&U(dU(a[ UR S35eT"U5$)Nrrz() takes no arguments)robject__new__rr7r')clsrkkwargsrlrr original_newrs rr$deprecated.__call__..__new__Osq#:xJNKv~~5'=d=f==\\V__4$&#s||n4I$JKK',,rc0>[TTTS-S9 T"U0UD6$Nrrrrkrrroriginal_init_subclassrs r__init_subclass__.deprecated.__call__..__init_subclass__c#xJNK14B6BBrc0>[TTTS-S9 T"U0UD6$rrrs rrrlrrc0>[TTTS-S9 T"U0UD6$rr)rkrrlrrrs rwrapper$deprecated.__call__..wrapperzs#S8 QGD+F++rzY@deprecated decorator with non-None category must be applied to a class or callable, not )rrr__deprecated__rLrN functoolstypesrrwraps staticmethodr__func__ classmethodr6inspectiscoroutinefunctionmarkcoroutinefunctionr7) rrlrrrrrrrrrrrs ` @@@@@r__call__deprecated.__call__@sll==__  !$C J T " "  (;;L __\ * - -+ -'w/CK%(%:%: "0*==)?)H)H&!78C9C)44E(F%!78C9C):%:= =C !7/2  ,J c]]   __S ! ," ,**3//!77@:= =C !7N,,/74 r)rrr) r'rcrdrerfDeprecationWarningrMrNrPrQrr rgr_rrr r sJ(\*< %% w-$& %  % % Hrr z@{name!r} is deprecated and slated for removal in Python {remove})_versioncUSSUS3nUSSU:dUSSU:XaUSS:waU<SUS 3n[U5eURXS 9n[U[SS 9 g) 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 tuple (e.g. (3, 11)). rr|rNralphaz% was slated for removal after Python z alpha)rrZ)r)rrrr )rrrZr remove_formattedrs r _deprecatedrs!)AfQi[1! v8BQ<6#9hqkW>T=>N=OvV3nn$n@ S$3rc&^^STRS3/nTRbASSKmSSKnUU4SjnUR S5 XR [ U"555- nSRU5RS5n[U[STS 9 g) Nz coroutine 'z' was never awaited rc3z># [TR5HupnTRX5nXX#4v M g7fr)reversed cr_originr))rrfuncnamercoror(s rextract*_warn_unawaited_coroutine..extracts:.6t~~.F*( ((:88/Gs8;z-Coroutine created at (most recent call last) r>r&r)rrr,) rdrr( tracebackrJ format_listlistrrstriprRuntimeWarning)r msg_linesrrrr(s` @r_warn_unawaited_coroutiner!s d''((=>I ~~!# 9 IJ**4 ?;; '')  # #D )C ~!DAr)rY_defaultaction _onceregistryrrr\TrEc[S- qg)Nr)rr_rrr\r\s Argettotalrefcount__main__)rrDrJrC)rrJ)NNr)NrN)NNNN)4rfr__all__rrrrr5r:r<r rPrrrUr r*rarmrirrrsrrrrrrrrr r _DEPRECATED_MSG version_inforr! _warningsrYr"r#r\rr_warnings_defaultsrr warnoptionshasattrr PendingDeprecationWarning ImportWarningResourceWarningr_rrr1s,  < $  9 x &$ $$&1%JN#*!EE$   9 F>89*@M; ,#!,#^>BDNLVL,I@VI@XBBJU-43CSCS4(B<BB"M L   3* + +y+=( 4X(:1EX(A!LX a@XB5 GML s*DD('D(