grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026o ®û|jèLã@sÈ ddlZgd¢Zdd(d)„Z  d?d*d+„ZGd,d-„d-eƒZGd.d/„d/eƒZd0d1„Zzdd2lmZmZm Z mZmZm!Z!eZ"e Z#d3Z$Wne%y°gZd4Z"iZ#d'a&d5d6„Z!dZ$Ynweej'ƒe$sáe(ed7ƒsáe d4e)d8d'd9�e d:e)d'd;�e d:e*d'd;�e d:e+d'd;�e d:e,d'd;�[$dS)@éN)ÚwarnÚ warn_explicitÚ showwarningÚ formatwarningÚfilterwarningsÚ simplefilterÚ resetwarningsÚcatch_warningscCs t||||||ƒ}t|ƒdS©N)ÚWarningMessageÚ_showwarnmsg_impl)ÚmessageÚcategoryÚfilenameÚlinenoÚfileÚlineÚmsg©rú//opt/alt/python310/lib64/python3.10/warnings.pyr s rcCs t||||d|ƒ}t|ƒSr )r Ú_formatwarnmsg_impl)r rrrrrrrrrsrcCsN|j}|durtj}|durdSt|ƒ}z| |¡WdSty&YdSwr )rÚsysÚstderrÚ_formatwarnmsgÚwriteÚOSError)rrÚtextrrrr s þr c Cs†|jj}|j›d|j›d|›d|j›d�}|jdur6zddl}| |j|j¡}Wnty5d}d}Ynw|j}|rE|  ¡}|d|7}|j durÁzddl }Wn ty]d}d}Ynw|  ¡}z|  |j ¡}Wn tyud}Ynw|dur¸|d7}|D]5}|d|j|jf7}z|durš| |j|j¡}nd}Wn ty¨d}Ynw|rµ|  ¡}|d |7}q€|S|sÁ||›d �7}|S) Nú:z: Ú rz %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__rrr rÚ linecacheÚgetlineÚ ExceptionÚstripÚsourceÚ tracemallocÚ is_tracingÚget_object_traceback) rrÚsr rr%ÚtracingÚtbÚframerrrr#sb"  ü    ý ý ÿ€ ÿ €ýrcCsd zt}Wn tyYnw|tur,t|ƒstdƒ‚||j|j|j|j|j |j ƒdSt |ƒdS)Nz:warnings.showwarning() must be set to a function or method) rÚ NameErrorÚ_showwarning_origÚcallableÚ TypeErrorr rrrrrr )rÚswrrrÚ _showwarnmsg`s ÿÿ r1cCsN zt}Wn tyYt|ƒSw|tur#||j|j|j|j|jƒSt|ƒSr ) rr,Ú_formatwarning_origr rrrrr)rÚfwrrrrus ù  ÿrÚFcCsV |s|r ddl}|r| ||j¡}nd}|r| |¡}nd}t||||||d�dS)Nr©Úappend)ÚreÚcompileÚIÚ _add_filter)Úactionr rÚmodulerr6r7rrrr‚s rcCs t|d|d||d�dS)Nr5)r:)r;rrr6rrrr¥s rcGsP|szt |¡Wn tyYnwt d|¡n |tvr#t |¡tƒdS)Nr)ÚfiltersÚremoveÚ ValueErrorÚinsertr6Ú_filters_mutated)r6Úitemrrrr:µs ÿ  r:cCs gtdd…<tƒdSr )r=rArrrrrÃs  rc@seZdZ dS)Ú _OptionErrorN)rÚ __module__Ú __qualname__rrrrrCÈsrCc CsN|D]"}zt|ƒWqty$}ztd|tjd�WYd}~qd}~wwdS)NzInvalid -W option ignored:)r)Ú _setoptionrCÚprintrr)ÚargsÚargrrrrÚ_processoptionsÍs €ÿýrJc Csö| d¡}t|ƒdkrtd|fƒ‚t|ƒdkr#| d¡t|ƒdksdd„|Dƒ\}}}}}t|ƒ}t|ƒ}|s;|r?ddl}|rF| |¡}|rO| |¡d}|roz t|ƒ}|dkr\t ‚Wnt t fyntd |fƒd‚wd}t |||||ƒdS) Nréztoo many fields (max 5): %rr4cSsg|]}| ¡‘qSr)r#)Ú.0r(rrrÚ Ûs ÿz_setoption..rz\Zzinvalid lineno %r) ÚsplitÚlenrCr6Ú _getactionÚ _getcategoryr7ÚescapeÚintr?Ú OverflowErrorr)rIÚpartsr;r rr<rr7rrrrFÕs8     ÿÿ ÿÿrFcCs>|sdS|dkr dSdD] }| |¡r|Sq td|fƒ‚)NÚdefaultÚallÚalways)rVrXÚignorer<ÚonceÚerrorzinvalid action: %r)Ú startswithrC)r;ÚarrrrPñs  ÿrPcCs¬|stSd|vrddl}|}n"| d¡\}}}z t|dd|gƒ}Wnty0td|fƒd‚wzt||ƒ}WntyGtd|fƒd‚wt|tƒsTtd|fƒ‚|S)NÚ.rzinvalid module name: %rzunknown warning category: %rzinvalid warning category: %r) ÚWarningÚbuiltinsÚ rpartitionÚ __import__Ú ImportErrorrCÚgetattrÚAttributeErrorÚ issubclass)rÚmÚklassr<Ú_ÚcatrrrrQûs& ÿ ÿ rQcCs |jj}d|vo d|vS)NÚ importlibÚ _bootstrap)Úf_codeÚ co_filename)r+rrrrÚ_is_internal_framesrocCs2 |j}|durt|ƒr|j}|durt|ƒs |Sr )Úf_backro)r+rrrÚ_next_external_frames ÿrqéc Cs t|tƒr |j}|durt}t|tƒrt|tƒs#td t|ƒj¡ƒ‚z+|dks/t t   d¡ƒr5t   |¡}nt   d¡}t |dƒD] }t |ƒ}|durLt‚q@Wnty^t j}d}d}Yn w|j}|jj}|j}d|vrr|d} nd} | di¡} t||||| | ||ƒdS)Nz/category must be a Warning subclass, not '{:s}'rrrrzZ__warningregistry__)Ú isinstancer_Ú __class__Ú UserWarningÚtyperfr/ÚformatrrorÚ _getframeÚrangerqr?Ú__dict__Ú f_globalsrmrnÚf_linenoÚ setdefaultr) r rÚ stacklevelr$r+ÚxÚglobalsrrr<ÚregistryrrrrsD  ÿ  ÿ€ ý  ÿrcCsÖt|ƒ}|dur|p d}|dd… ¡dkr|dd…}|dur"i}| dd¡tkr2| ¡t|d<t|tƒr?t|ƒ}|j}n|}||ƒ}|||f} | | ¡rQdSt D]*} | \} } } }}| duse|   |¡r}t || ƒr}|duss|  |¡r}|dks{||kr}nqSt } | dkr†dSddl }| ||¡| dkr–|‚| dkr®d || <||f}t |¡r©dSd t|<n/| d kr³n*| d krÌd || <||df}| |¡rÇdSd ||<n| d krÕd || <ntd | | fƒ‚t|||||ƒ} t| ƒdS)Nz éýÿÿÿz.pyÚversionrrYr[rZrrrXr<rVz1Unrecognized action (%r) in warnings.filters: %s)rSÚlowerÚgetÚ_filters_versionÚclearrsr_Ústrrtr=ÚmatchrfÚ defaultactionr ÚgetlinesÚ onceregistryÚ RuntimeErrorr r1)r rrrr<r�Úmodule_globalsr$rÚkeyrBr;rrjÚmodZlnr ZoncekeyZaltkeyrrrrGsr    ÿ€       ÿÿ rc@s&eZdZdZ  ddd„Zdd„ZdS)r )r rrrrrr$NcCsD||_||_||_||_||_||_||_|r|j|_dSd|_dSr ) r rrrrrr$rÚ_category_name)Úselfr rrrrrr$rrrÚ__init__“szWarningMessage.__init__cCsd|j|j|j|j|jfS)NzD{message : %r, category : %r, filename : %r, lineno : %s, line : %r})r r‘rrr)r’rrrÚ__str__žs  ÿÿzWarningMessage.__str__)NNN)rrDrEÚ_WARNING_DETAILSr“r”rrrrr Žs  ÿ r c@s6eZdZ dddœdd„Zdd„Zdd „Zd d „ZdS) r FN)Úrecordr<cCs* ||_|dur tjdn||_d|_dS)NÚwarningsF)Ú_recordrÚmodulesÚ_moduleÚ_entered)r’r–r<rrrr“µs zcatch_warnings.__init__cCsPg}|jr | d¡|jtjdur| d|j¡t|ƒj}d|d |¡fS)Nz record=Truer—z module=%rz%s(%s)z, )r˜r6ršrr™rvrÚjoin)r’rHÚnamerrrÚ__repr__Ás  zcatch_warnings.__repr__cCsz|jr td|ƒ‚d|_|jj|_|jdd…|j_|j ¡|jj|_|jj|_|j r;g}|j |j_|jj |j_|SdS)NzCannot enter %r twiceT) r›r�ršr=Ú_filtersrArÚ _showwarningr r˜r6r-)r’ÚlogrrrÚ __enter__Ês       zcatch_warnings.__enter__cGs>|js td|ƒ‚|j|j_|j ¡|j|j_|j|j_dS)Nz%Cannot exit %r without entering first) r›r�rŸršr=rAr rr )r’Úexc_inforrrÚ__exit__Ýs     zcatch_warnings.__exit__)rrDrEr“ržr¢r¤rrrrr ¤s   r cszdˆj›d�g}ˆjdur+ddl‰ddl}‡‡fdd„}| d¡|| t|ƒƒ¡7}d |¡ d¡}t |t d ˆd �dS) Nz coroutine 'z' was never awaited rc3s6�tˆjƒD]\}}}ˆ ||¡}||||fVqdSr )ÚreversedÚ cr_originr!)rrÚfuncnamer©Úcoror rrÚextractís € þz*_warn_unawaited_coroutine..extractz-Coroutine created at (most recent call last) r4ré)rr~r$) rEr¦r Ú tracebackr6Ú format_listÚlistrœÚrstriprÚRuntimeWarning)r©Ú msg_linesr¬rªrrr¨rÚ_warn_unawaited_coroutineçs ÿ  r²)r=Ú_defaultactionÚ _onceregistryrrrATrVcCs td7adS)Nrr)r†rrrrrAs rAZgettotalrefcountÚ__main__)rr<r6rY)rr6)NNr )NrrN)NNNN)-rÚ__all__rrr rr-r1r2rr_rrr:rr"rCrJrFrPrQrorqrrÚobjectr r r²Ú _warningsr=r³r´rArŠrŒZ_warnings_defaultsrcr†Ú warnoptionsÚhasattrÚDeprecationWarningÚPendingDeprecationWarningÚ ImportWarningÚResourceWarningrrrrÚsn  ;  ÿ#  ) þGC  õ  ÿ