grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026 ú“qcê=ã@s¡dZddlZddddddd d gZddd d„Zdd d„Zd ed dddd„Zedddd„Zdd„Zdd „Z Gdd„de ƒZ dd„Z dd„Z dd„Zdd„Zdd„Zd d!„Zdd"d#d„Zdddd$d„ZGd%d&„d&eƒZGd'd „d eƒZdZyDdd(lmZmZmZmZmZmZeZeZd)ZWn6ek rÌgZd*ZiZd"a d+d,„ZYnXe ej!ƒesše"e#gZ$e$j%e&ƒxe$D]Z'ed-d.e'ƒqWej(j)Z)e)d"kr;d/Z*ne)rJd*Z*nd-Z*ee*d.e+d0d"ƒe,ed1ƒr~d2Z-nd-Z-ee-d.e.d0d"ƒ[dS)3z&Python part of the warnings subsystem.éNÚwarnÚ warn_explicitÚ showwarningÚ formatwarningÚfilterwarningsÚ simplefilterÚ resetwarningsÚcatch_warningsc Csa|dkr%tj}|dkr%dSy#|jt|||||ƒƒWntk r\YnXdS)z7Hook to write a warning to a file; replace if you like.N)ÚsysÚstderrÚwriterÚOSError)ÚmessageÚcategoryÚfilenameÚlinenoÚfileÚline©rú-/opt/alt/python35/lib64/python3.5/warnings.pyr s   # c Cs†d|||j|f}|dkrby"ddl}|j||ƒ}Wntk rad}YnX|r‚|jƒ}|d|7}|S)z.Function to format a warning the standard way.z%s:%s: %s: %s Nrz %s )Ú__name__Ú linecacheÚgetlineÚ ExceptionÚstrip)rrrrrÚsrrrrrs     ÚFcCsDddl}t||j||jƒ||j|ƒ|d|ƒdS)aÖInsert 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 rNÚappend)ÚreÚ _add_filterÚcompileÚI)ÚactionrrÚmodulerrrrrrr&s cCs t|d|d|d|ƒdS)a�Insert 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 Nr)r)r"rrrrrrr>sc Gsc|s?ytj|ƒWntk r+YnXtjd|ƒn|tkrXtj|ƒtƒdS)Nr)ÚfiltersÚremoveÚ ValueErrorÚinsertrÚ_filters_mutated)rÚitemrrrrNs   rcCsgtdd…us z_setoption..ú$zinvalid lineno %r) rÚsplitÚlenr*rÚ _getactionÚescapeÚ _getcategoryÚintr&Ú OverflowErrorr)r1rÚpartsr"rrr#rrrrr.ns.        r.cCsU|s dS|dkrdSx!d D]}|j|ƒr!|Sq!Wtd|fƒ‚dS) NÚdefaultÚallÚalwaysÚignorer#ÚonceÚerrorzinvalid action: %r)rArCrDr#rErF)Ú startswithr*)r"Úarrrr;‰s  r;cCs;ddl}|stS|jd|ƒrcyt|ƒ}Wqtk r_td|fƒ‚YqXn²|jdƒ}|d|…}||dd…}yt|dd|gƒ}Wn%tk rÙtd|fƒ‚YnXyt ||ƒ}Wn%t k rtd|fƒ‚YnXt |tƒs7td|fƒ‚|S)Nrz^[a-zA-Z0-9_]+$zunknown warning category: %rÚ.ézinvalid module name: %rzinvalid warning category: %r) rÚWarningÚmatchÚevalÚ NameErrorr*ÚrfindÚ __import__Ú ImportErrorÚgetattrÚAttributeErrorÚ issubclass)rrÚcatÚir#ÚklassÚmrrrr=“s,    r=cCs"|jj}d|ko!d|kS)zFSignal whether the frame is an internal CPython implementation detail.Ú importlibÚ _bootstrap)Úf_codeÚ co_filename)ÚframerrrrÚ_is_internal_frame­s r^cCs5|j}x%|dk r0t|ƒr0|j}q W|S)z;Find the next frame that doesn't involve CPython internals.N)Úf_backr^)r]rrrÚ_next_external_frame³s  r`rJc Csót|tƒr|j}|dkr*t}t|tƒoEt|tƒsftdjt|ƒjƒƒ‚y|dksŠt t j dƒƒrœt j |ƒ}nHt j dƒ}x6t |dƒD]$}t |ƒ}|dkr¼t‚q¼WWn!tk rt j}d}YnX|j}|j}d|kr4|d}nd}|jdƒ}|r}|jƒ} | jdƒrÁ|dd …}nD|dkrµyt jd }Wntk r´d}YnX|sÁ|}|jd iƒ} t|||||| |ƒdS) z:Issue a warning, or maybe ignore it or raise an exception.Nz/category must be a Warning subclass, not '{:s}'rJrzÚ__file__z.pycÚ__main__rZ__warningregistry__éÿÿÿÿ)Ú isinstancerKÚ __class__Ú UserWarningÚtyperTÚ TypeErrorÚformatrr^r Ú _getframeÚranger`r&Ú__dict__Ú f_globalsÚf_linenoÚgetÚlowerÚendswithÚargvrSÚ setdefaultr) rrÚ stacklevelr]ÚxÚglobalsrr#rZfnlÚregistryrrrr¼sL   !             cCs¯t|ƒ}|dkrP|p!d}|dd…jƒdkrP|dd…}|dkrbi}|jddƒtkrŽ|jƒt|déz.pyÚversionrrDrJrFrErCr#rAz1Unrecognized action (%r) in warnings.filters: %sz:warnings.showwarning() must be set to a function or methodéýÿÿÿrz)r>rproÚ_filters_versionÚclearrdrKÚstrrer$rLrTÚ defaultactionrÚgetlinesÚ onceregistryÚ RuntimeErrorÚcallablerrh)rrrrr#rwÚmodule_globalsÚtextÚkeyr)r"r2rUÚmodÚlnrZoncekeyZaltkeyrrrrðsn                          c@s:eZdZdZd Zddd d „Zd d „ZdS)ÚWarningMessagez0Holds the result of a single showwarning() call.rrrrrrNc CsMtƒ}x%|jD]}t||||ƒqW|r@|jnd|_dS)N)ÚlocalsÚ_WARNING_DETAILSÚsetattrrÚ_category_name) ÚselfrrrrrrÚ local_valuesÚattrrrrÚ__init__@s zWarningMessage.__init__cCs&d|j|j|j|j|jfS)NzD{message : %r, category : %r, filename : %r, lineno : %s, line : %r})rrŒrrr)r�rrrÚ__str__Gs zWarningMessage.__str__)rrrrrr)rr+r,r-rŠr�r‘rrrrrˆ9s rˆc@sReZdZdZdddddd„Zdd „Zd d „Zd d „ZdS)r a�A 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. ÚrecordFr#NcCs8||_|dkr"tjdn||_d|_dS)zêSpecify 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. NÚwarningsF)Ú_recordr ÚmodulesÚ_moduleÚ_entered)r�r’r#rrrr�^s "zcatch_warnings.__init__cCslg}|jr|jdƒ|jtjdk rF|jd|jƒt|ƒj}d|dj|ƒfS)Nz record=Truer“z module=%rz%s(%s)z, )r”rr–r r•rgrÚjoin)r�r0ÚnamerrrÚ__repr__js  zcatch_warnings.__repr__csŸ|jrtd|ƒ‚d|_|jj|_|jdd…|j_|jjƒ|jj|_|jr—g‰‡fdd†}||j_ˆSdSdS)NzCannot enter %r twiceTcsˆjt||ŽƒdS)N)rrˆ)r0Úkwargs)Úlogrrr}sz-catch_warnings.__enter__..showwarning) r—r�r–r$Ú_filtersr(rÚ _showwarningr”)r�rr)rœrÚ __enter__ss     zcatch_warnings.__enter__cGsH|jstd|ƒ‚|j|j_|jjƒ|j|j_dS)Nz%Cannot exit %r without entering first)r—r�r�r–r$r(ržr)r�Úexc_inforrrÚ__exit__„s   zcatch_warnings.__exit__)rr+r,r-r�ršrŸr¡rrrrr Ms  )r$Ú_defaultactionÚ _onceregistryrrr(TrAcCstd7adS)NrJ)r{rrrrr(¢sr(rDrrFrÚgettotalrefcountrC)/r-r Ú__all__rrrKrrrrrr*r3r.r;r=r^r`rrÚobjectrˆr Z_warnings_defaultsÚ _warningsr$r¢r£r(r~r€rQr{Ú warnoptionsÚ ImportWarningÚPendingDeprecationWarningZsilencerÚDeprecationWarningÚclsÚflagsÚ bytes_warningZ bytes_actionÚ BytesWarningÚhasattrZresource_actionÚResourceWarningrrrrÚsh             5HG.