o 0¦i@/ã@s¾ ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl Z dd„Z gZ dd„Z dd„Z dd „Zd d „Zd d „Zddd„Zddd„ZGdd„dƒZeƒjZddd„ZdS)éNcCs dS)Na' --> --> ©rrrú,/opt/alt/python310/lib64/python3.10/cgitb.pyÚreset#srcCó|rd|dSdS)NzzÚr©ÚtextrrrÚsmall.ó r cCr)Nzz rrrrrrÚstrong4r r cCr)NzzrrrrrrÚgrey:r r cCsŽ ||vr d||fS||jvrd|j|fSd|jvrC|jd}t|ƒtiƒur7||vr3d||fSdtfSt||ƒrCdt||ƒfSdtfS)NÚlocalÚglobalÚ __builtins__Úbuiltin)Ú f_globalsÚtypeÚhasattrÚgetattrÚ __UNDEF__)ÚnameÚframeÚlocalsÚbuiltinsrrrÚlookup@s      þrcCsÖ gdddtf\}}}}}t |¡D]V\}} } } } |tjkr!|S|tjkrU| tjvrU|dkrD|turCt|| tƒ}| || ||f¡n"t | ||ƒ\} }| | | |f¡n| dkrb||d7}|}nd\}}| }q|S)NrÚ.)Nr) rÚtokenizeÚgenerate_tokensÚNEWLINEÚNAMEÚkeywordÚkwlistrÚappendr)ÚreaderrrÚvarsZ lasttokenÚparentÚprefixÚvalueZttypeÚtokenÚstartÚendÚlineÚwhererrrÚscanvarsPs& ò € r-éc" s’ |\}}}t|tƒr|j}dtj ¡ddtj}t t ¡¡}dt j   dt t j   t|ƒ¡ƒdd|d|¡d }d td ƒd }g} t ||¡} | D�] \} ‰} } }}ˆrltj ˆ¡‰d ˆt j   ˆ¡f}nd‰}t | ¡\}}}}d}| dkr›dt t j   | ¡ƒ}| dkr›|tj||||dd„d�7}i‰| gf‡‡fdd„ }t|| |ƒ}dd||fg}|du�r| |}|D]A}tddtt|ƒƒt|ƒƒd}|ˆvrêd|t j  |¡f}| d|¡nd|t j  |¡f}| dt|ƒ¡|d7}qÀig}}|D]O\}}} ||v�r�q d||<| tu�rP|d v�r,d!|t |ƒ}n|d"k�r6t |ƒ}n |t | d#¡d$ƒ}| d%|t j  | ¡f¡�q | |d&¡�q | dttd' |¡ƒƒ¡|  d(d) |¡¡qPd*t t j   t|ƒ¡ƒt j   t|ƒ¡fg}!t|ƒD]!}|dd…d+k�r˜�q‹t j  t ||ƒ¡} |! d,||| f¡�q‹|d | ¡d |!¡d-t j   d t! "|||¡¡¡S).NúPython rú: zz%sz#ffffffz#6622aaz
z‹

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

zz     z  z%sú?rúin úcSódtj |¡S©Nú=)ÚpydocÚhtmlÚrepr©r'rrrÚ‚ózhtml..©Z formatvaluec óBdˆ|d<zt ˆ|d¡W|dd7<S|dd7<w©Nér©Ú linecacheÚgetline©Úlnum©ÚfileZ highlightrrr#…ó $zhtml..readerz+%s%s %sz z r.z=>%s%sz&%sz  %s%sz%sr@)rrz %s r réÿÿÿÿz %s = %sz undefinedz, zF %s
Ú z

%s: %sÚ_z
%s%s = %szî )#Ú isinstancerÚ__name__ÚsysÚversionÚsplitÚ executableÚtimeÚctimer7r8Zheadingr ÚescapeÚstrr ÚinspectÚgetinnerframesÚosÚpathÚabspathÚ getargvaluesÚformatargvaluesr-ÚlenZ preformatr"r rr9ÚjoinÚdirrÚ tracebackÚformat_exception)"ÚeinfoÚcontextÚetypeÚevalueÚetbÚpyverÚdateÚheadÚindentÚframesÚrecordsrrEÚfuncÚlinesÚindexÚlinkÚargsÚvarargsÚvarkwrÚcallr#r$ÚrowsÚir+ÚnumÚdoneÚdumprr,r'Ú exceptionrrFrr8es”  ÿýý  ÿ ÿ $      þÿ  ÿ÷r8c sx |\}}}t|tƒr|j}dtj ¡ddtj}t t ¡¡}dt |ƒ||fd}g}t   ||¡} | D]Å\} ‰} } } }ˆrHt j  ˆ¡pId‰t  | ¡\}}}}d}| dkrod| }| d kro|t j||||d d „d �7}i‰| gf‡‡fd d„ }t|| |ƒ}dˆ|fg}|dur¦| |}| D]}d|}| || ¡¡|d7}q’ig}}|D]=\}}}||vr·q­d||<|turã|dkrÈd|}n |dkrÕ|| d¡d}| d|tj |¡f¡q­| |d¡q­| d |¡¡| dd |¡¡q8dt |ƒt |ƒfg}t|ƒD]}tj t||ƒ¡}| dd||f¡�q |d |¡d |¡dd t |||¡¡S)Nr/rr0z %s %s %s z… A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred. r1rr2r3cSr4r5)r7rr9r:rrrr;Ör<ztext..r=c r>r?rArDrFrrr#ÙrHztext..readerz %s %sz%5d r@rzglobal r rrIz%s = %sz undefinedrJz %s z%s: %sz %s%s = %sz zc The above is a description of an error in a Python program. Here is the original traceback: %s )rLrrMrNrOrPrQrRrSrUrVrWrXrYrZr[r\r-r"Úrstriprr7rr9r^r_rr`ra) rbrcrdrerfrgrhrirkrlrrErmrnrorqrrrsrrtr#r$rurvr+rwrxryrr,r'rzrrFrrÀs^   ÿ     úrc@s.eZdZ  d dd„Zdd„Zd d d „ZdS) ÚHookr@Nr.r8cCs(||_||_||_|p tj|_||_dS©N)ÚdisplayÚlogdirrcrNÚstdoutrGÚformat)Úselfr~rrcrGr�rrrÚ__init__s   z Hook.__init__cCs| |||f¡dSr})Úhandle)r‚rdrerfrrrÚ__call__ sz Hook.__call__c Cs€|pt ¡}|jdkr|j tƒ¡|jdkrtpt}d}z|||jƒ}Wnd  t j |Ž¡}d}Y|j rS|rJt j |¡}|j d|d¡n|j |d¡n|j d¡|jdur±d d g|jdk}tj||jd �\}}z!t |d ¡� }| |¡Wdƒn1sˆwYd |} Wnd|} Y|jdkr©|j d| ¡n|j | d¡z|j ¡WdSYdS)Nr8FrTz

z
rJz*

A problem occurred in a Python script. z.txtz.html)Úsuffixr_Úwz*%s contains the description of this error.z*Tried to save traceback to %s, but failed.z

%s

)rNÚexc_infor�rGÚwriterr8rrcr^r`rar~r7rTrÚtempfileZmkstemprXÚfdopenÚflush) r‚ÚinfoZ formatterZplainÚdocr†ÚfdrYrGÚmsgrrrr„s@      ÿ    z Hook.handle)r@Nr.Nr8r})rMÚ __module__Ú __qualname__rƒr…r„rrrrr|s ÿr|r@cCs t||||d�t_dS)N©r~rrcr�)r|rNÚ excepthookr“rrrÚenable:s ÿr•)r.)r@Nr.r8)rVr rBrXr7rNrŠrRrr`rrr r r rr-r8rr|r„Zhandlerr•rrrrÚs.   [B7