KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21585/root/usr/lib64/python2.4/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21585/root/usr/lib64/python2.4/cgitb.pyo
mò
‚=5Dc@s§dZdZdZdkZd„ZgZd„Zd„Zd„Zd„Z	d	„Z
d
d„Zd
d„Zd
fd„ƒYZ
e
ƒiZddd
dd„ZdS(s™More comprehensive traceback formatting for Python scripts.

To enable this module, do:

    import cgitb; cgitb.enable()

at the top of your script.  The optional arguments to enable() are:

    display     - if true, tracebacks are displayed in the web browser
    logdir      - if set, tracebacks are written to files in this directory
    context     - number of lines of source code to show for each stack frame
    format      - 'text' or 'html' controls the output format

By default, tracebacks are displayed but not saved, the context is 5 lines
and the output format is 'html' (for backwards compatibility with the
original use of this module)

Alternatively, if you have caught an exception and want cgitb to display it
for you, call cgitb.handler().  The optional argument to handler() is a
3-item tuple (etype, evalue, etb) just like the value of sys.exc_info().
The default handler displays output as HTML.
sKa-Ping Yees$Revision: 39082 $NcCsdS(sAReturn a string that resets the CGI and browser to a known state.s'<!--: spam
Content-Type: text/html

<body bgcolor="#f0f0f8"><font color="#f0f0f8" size="-5"> -->
<body bgcolor="#f0f0f8"><font color="#f0f0f8" size="-5"> --> -->
</font> </font> </font> </script> </object> </blockquote> </pre>
</table> </table> </table> </table> </table> </font> </font> </font>N((((t/usr/lib64/python2.4/cgitb.pytresetscCs|od|dSndSdS(Ns<small>s</small>t(ttext(R((Rtsmall(scCs|od|dSndSdS(Ns<strong>s	</strong>R(R(R((Rtstrong.scCs|od|dSndSdS(Ns<font color="#909090">s</font>R(R(R((Rtgrey4scCsÒ||jod||fSn||ijod|i|fSnd|ijot|id}t|ƒthƒjo#||jod||fSqÄqÈt||ƒodt||ƒfSqÈndt	fS(s9Find the value for a given name in the given environment.tlocaltglobalt__builtins__tbuiltinN(
tnametlocalstframet	f_globalstbuiltinsttypethasattrtgetattrtNonet	__UNDEF__(RR
RR((Rtlookup:s


cCsOdk}dk}gdddtf\}}}}
}x|i	|ƒD]\}
}}	}}|
|ijoPn|
|ijo||ijo€|djoA|tj	o0t||tƒ}|i|
||
|fƒqqAt|||ƒ\}}|i|||fƒn2|djo|
|d7}
|}n
d\}}
|}qFW|S(sEScan one logical line of Python and look up values of variables used.NRt.(NR(ttokenizetkeywordRRtvarst	lasttokentparenttprefixtvaluetgenerate_tokenstreadertttypettokentstarttendtlinetNEWLINEtNAMEtkwlistRtappendRR
Rtwhere(RR
RRR#RRR!RR"RRRR R$R)((RtscanvarsJs($ 

"


ic+s|\}}}dk}*dk}dk}(dk}#dk‰dk}dk	‰t
|ƒ|ijo
|i}ndt
iiƒddt
i}|(i|(iƒƒ}dˆiidtˆiit|ƒƒƒdd|d	|ƒd
}dtdd
ƒd}g}|i||ƒ} xõ| D]í\}‰}}}$}ˆo2|*i&i'ˆƒ‰dˆˆiiˆƒf}nd‰}|i)|ƒ\}}}"}
d}|djo6dt|ƒ|i/|||"|
d‡d†ƒ}nh‰|g‡‡‡d†}t2|||
ƒ}dd||fg}|dj	o¬||}!xŸ|$D]“}tdd
t8t|!ƒƒt|!ƒƒd}d|ˆii:|ƒf}|!ˆjo|i;d|ƒn|i;dt<|ƒƒ|!d7}!qIWnhg}	}xß|D]×\}}}%||	joqønd|	|<|%tBj	oŒ|ddgjod|t|ƒ}n;|djot|ƒ}n|t|id ƒd!ƒ}|i;d"|ˆiiC|%ƒfƒqø|i;|d#ƒqøW|i;dtt<d$iD|ƒƒƒƒ|i;d%d&iD|ƒƒq&Wd'tˆiit|ƒƒƒˆiit|ƒƒfg}t
|ƒ|iFjohxetG|ƒD]S}|d d(joqwnˆiiCtH||ƒƒ}%|i;d)|||%fƒqwWndk}#|diD|ƒdiD|ƒd*diD|#iI|||ƒƒS(+s9Return a nice HTML document describing a given traceback.NsPython is: s<body bgcolor="#f0f0f8">s<big><big>%s</big></big>s#ffffffs#6622aas<br>s‹
<p>A problem occurred in a Python script.  Here is the sequence of
function calls leading up to the error, in the order they occurred.</p>s<tt>s&nbsp;is&nbsp;</tt>s<a href="file://%s">%s</a>t?Rsin tformatvaluecsdˆii|ƒS(Nt=(tpydocthtmltreprR(R(R.(Rt<lambda>}scs>dˆ|d<zˆiˆ|dƒSWd|dcd7<XdS(Nii(t	highlighttlnumt	linecachetgetlinetfile(R3(R2R6R4(RR€ss+<tr><td bgcolor="#d8bbff">%s%s %s</td></tr>s<big>&nbsp;</big>s
<tt>%s%s</tt>s&<tr><td bgcolor="#ffccee">%s</td></tr>s<tr><td>%s</td></tr>iRR
s<em>%s</em> RRiÿÿÿÿs%s&nbsp;= %ss <em>undefined</em>s, sF
<table width="100%%" cellspacing=0 cellpadding=0 border=0>
%s</table>s
s	<p>%s: %st_s
<br>%s%s&nbsp;=
%ssî


<!-- The above is a description of an error in a Python program, formatted
     for a Web browser because the 'cgitb' module was enabled.  In case you
     are not reading this in a Web browser, here is the original traceback:

%s
-->
(Jtetypetevaluetetbtosttypesttimet	tracebackR4tinspectR.Rt	ClassTypet__name__tsystversiontsplitt
executabletpyvertctimetdateR/theadingRtescapetstrtheadRtindenttframestgetinnerframestcontexttrecordsR
R6R3tfunctlinestindextpathtabspathtlinktgetargvaluestargstvarargstvarkwRtcalltformatargvaluesR2RR*RtrowsRtiR$tlentnumt	preformatR(RtdonetdumpRR)RRR0tjoint	exceptiontInstanceTypetdirRtformat_exception(+t.0RPR8R9R:RR3R
RaRcR6RNR)RR^RdRFR\RRLRYRTR?RWRRRZRHR$R<RfRMRRQR_R[R>RSRR.R4R=R2R;((R6R.R4R2RR/`s|?
"+ 



.





'&=
"	c)
så|\}}}dk}(dk}dk}&dk}!dk‰dk}dk	‰t
|ƒ|ijo
|i}ndt
iiƒddt
i}|&i|&iƒƒ}dt|ƒ||fd}g}|i||ƒ}x5|D]-\}‰}}}"}ˆo|(i i!ˆƒpd‰|i"|ƒ\}}} }
d}|djo0d	||i(||| |
d
‡d†ƒ}nh‰|g‡‡‡d†}t+|||
ƒ}d
ˆ|fg}|dj	oJ||}x=|"D]1}d|}|i2||i3ƒƒ|d7}qÛWnhg}	}x½|D]µ\}}}#||	joq(nd|	|<|#t9j	oj|djod|}n)|djo||idƒd}n|i2d|ˆi:i;|#ƒfƒq(|i2|dƒq(W|i2di<|ƒƒ|i2ddi<|ƒƒqäWdt|ƒt|ƒfg}t
|ƒ|i>joTxQt?|ƒD]?}ˆi:i;t@||ƒƒ}#|i2ddd||#fƒqWWndk}!|di<|ƒdi<|ƒddi<|!iA|||ƒƒS(s:Return a plain text document describing a given traceback.NsPython is: s	%s
%s
%s
s…
A problem occurred in a Python script.  Here is the sequence of
function calls leading up to the error, in the order they occurred.
R+Rsin R,csdˆii|ƒS(NR-(R.RR0R(R(R.(RR1Ñscs>dˆ|d<zˆiˆ|dƒSWd|dcd7<XdS(Nii(R2R3R4R5R6(R3(R2R6R4(RRÔss %s %ss%5d iRsglobal RRiÿÿÿÿs%s = %ss
 undefineds
s
%s
s%s: %ss

%s%s = %st isc

The above is a description of an error in a Python program.  Here is
the original traceback:

%s
(BR8R9R:R;R<R=R>R4R?R.RR@RARBRCRDRERFRGRHRKRLRNRORPRQR
R6R3RRRSRTRURVRXRYRZR[RR\R]R2RR*RR^RR_R$RaR(trstripRcRdRR)RRRR0ReRfRgRhRRi()RjRPR8R9R:RR3R
RaRcR6RNR)RR^RdRFR\RRLRYRTR?RQRRRZRHR$R<RfRR_R[R>RSRR.R4R=R2R;((R6R.R4R2RR»sf?
" 









'
&	tHookcBs;tZdZdededd„Zd„Zed„ZRS(s?A hook to replace sys.excepthook that shows tracebacks in HTML.iiR/cCs;||_||_||_|pti|_||_dS(N(tdisplaytselftlogdirRPR6RBtstdouttformat(RoRnRpRPR6Rr((Rt__init__s
			cCs|i|||fƒdS(N(RothandleR8R9R:(RoR8R9R:((Rt__call__
sc
Csõ|p
tiƒ}|idjo|iitƒƒn|idjotpt	}t}y|||i
ƒ}Wn.dk}di|i|Œƒ}t}nX|ioY|o:|iddƒiddƒ}|iid|dƒq|ii|d	ƒn|iid
ƒ|idj	o¯dk}dk}ddg|idj}|id
|d|iƒ\}}
y7|i|dƒ}|i|ƒ|iƒd|
}	Wnd|
}	nX|ii|	d	ƒny|ii ƒWnnXdS(NR/Rt&s&amp;t<s&lt;s<pre>s</pre>
s
s*<p>A problem occurred in a Python script.
s.txts.htmltsuffixRhtws.<p> %s contains the description of this error.s.<p> Tried to save traceback to %s, but failed.(!tinfoRBtexc_infoRoRrR6twriteRR/Rt	formattertFalsetplainRPtdocR>ReRitTrueRntreplaceRpRR;ttempfileRxtmkstemptfdRUtfdopentclosetmsgtflush(
RoRzR;RƒR>R€R…R6RRˆRUR}Rx((RRt
sB	

!

(RAt
__module__t__doc__RRsRuRt(((RRmÿs	iR/c	Cs(td|d|d|d|ƒt_dS(sInstall an exception handler that formats tracebacks as HTML.

    The optional argument 'display' can be set to 0 to suppress sending the
    traceback to the browser, and 'logdir' can be set to a directory to cause
    tracebacks to be written to files there.RnRpRPRrN(RmRnRpRPRrRBt
excepthook(RnRpRPRr((Rtenable5s(R‹t
__author__t__version__RBRRRRRRR*R/RRmRtthandlerRR(RRRR*RRRŽRBRmR/RRRRR((RR+s		
					[D5

Anon7 - 2021