config root man

Current Path : /usr/local/lib/python2.5/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/cgitb.pyc

³ò
h”Rc@sªdZdZdZddkZd„ZgZd„Zd„Zd„Zd	„Z	d
„Z
dd„Zdd
„Zddd„ƒYZ
e
ƒiZddddd„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: 55349 $iÿÿÿÿ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>((((s!/usr/local/lib/python2.5/cgitb.pytresetscCs|od|dSndSdS(Ns<small>s</small>t((ttext((s!/usr/local/lib/python2.5/cgitb.pytsmall)scCs|od|dSndSdS(Ns<strong>s	</strong>R((R((s!/usr/local/lib/python2.5/cgitb.pytstrong/scCs|od|dSndSdS(Ns<font color="#909090">s</font>R((R((s!/usr/local/lib/python2.5/cgitb.pytgrey5scCsÒ||jod||fSn||ijod|i|fSnd|ijot|id}t|ƒthƒjo#||jod||fSqÄqÈt||ƒodt||ƒfSqÈndtfS(s9Find the value for a given name in the given environment.tlocaltglobalt__builtins__tbuiltinN(t	f_globalsttypethasattrtgetattrtNonet	__UNDEF__(tnametframetlocalstbuiltins((s!/usr/local/lib/python2.5/cgitb.pytlookup;s


cCsUddk}ddk}gdddtf\}}}}}	x|i|ƒD]\}
}}}
}|
|ijoPn|
|ijo||ijo€|djoA|tj	o0t||tƒ}	|i	||||	fƒqqGt
|||ƒ\}}	|i	|||	fƒn2|djo||d7}|	}n
d\}}|}qLW|S(sEScan one logical line of Python and look up values of variables used.iÿÿÿÿNRt.(NR(ttokenizetkeywordRRtgenerate_tokenstNEWLINEtNAMEtkwlistR
tappendR(treaderRRRRtvarst	lasttokentparenttprefixtvaluetttypettokentstarttendtlinetwhere((s!/usr/local/lib/python2.5/cgitb.pytscanvarsKs&$ 

"


ic's7|\}}}ddk}ddk}ddk}ddk}ddk‰ddk}	ddk‰t|ƒ|ijo
|i	}ndt
iiƒddt
i
}
|i|iƒƒ}dˆiidtˆiit|ƒƒƒdd	|
d
|ƒd}dtd
dƒd}
g}|	i||ƒ}xõ|D]í\}‰}}}}ˆo2|iiˆƒ‰dˆˆiiˆƒf}nd‰}|	i|ƒ\}}}}d}|djo9dt|ƒ|	i||||d‡fd†ƒ}nh‰|g‡‡‡fd†}t|||ƒ}dd||fg}|dj	o¬||}xŸ|D]“}td
dtt|ƒƒt|ƒƒd
} d| ˆii|ƒf}|ˆjo|id|ƒn|idt|ƒƒ|d7}qdWnhg}!}"xÙ|D]Ñ\}#}$}%|#|!joqnd|!|#<|%t j	o†|$d+jod|$t|#ƒ}#n;|$d jot|#ƒ}#n|$t|#id!ƒdƒ}#|"id"|#ˆii!|%ƒfƒq|"i|#d#ƒqW|idttd$i"|"ƒƒƒƒ|id%d&i"|ƒƒq;Wd'tˆiit|ƒƒƒˆiit|ƒƒfg}&t#|t$ƒohxet%|ƒD]S}#|#d d(joq†nˆii!t&||#ƒƒ}%|&id)|
|#|%fƒq†Wnddk}|di"|ƒdi"|&ƒd*ˆiidi"|i'|||ƒƒƒS(,s9Return a nice HTML document describing a given traceback.iÿÿÿÿ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(t=(thtmltrepr(R"(tpydoc(s!/usr/local/lib/python2.5/cgitb.pyt<lambda>~scs>dˆ|d<zˆiˆ|dƒSWd|dcd7<XdS(Nii(tgetline(tlnum(t	highlighttfilet	linecache(s!/usr/local/lib/python2.5/cgitb.pyRss+<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> RRs%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
-->
(sglobalsbuiltin((tosttypesttimet	tracebackR5tinspectR/Rt	ClassTypet__name__tsystversiontsplitt
executabletctimeR-theadingRtescapetstrRtgetinnerframestpathtabspathtgetargvaluestformatargvaluesR)Rtlent	preformatRRRR.tjoint
isinstancet
BaseExceptiontdirR
tformat_exception('t.0tcontexttetypetevaluetetbR7R8R9R:R;tpyvertdatetheadtindenttframestrecordsRR2tfunctlinestindextlinktargstvarargstvarkwRtcallRRtrowstiR'tnumtdonetdumpRR(R"t	exception((R4R/R5R3s!/usr/local/lib/python2.5/cgitb.pyR-asˆT
"@ 




.






'&
"	c%sù|\}}}ddk}ddk}ddk}ddk}ddk‰ddk}	ddk‰t|ƒ|ijo
|i	}ndt
iiƒddt
i
}
|i|iƒƒ}dt|ƒ|
|fd}g}
|	i||ƒ}x;|D]3\}‰}}}}ˆo|iiˆƒpd‰|	i|ƒ\}}}}d	}|djo3d
||	i||||d‡fd†ƒ}nh‰|g‡‡‡fd
†}t|||ƒ}dˆ|fg}|dj	oJ||}x=|D]1}d|}|i||iƒƒ|d7}qöWnhg}} x½|D]µ\}!}"}#|!|joqCnd||!<|#tj	oj|"djod|!}!n)|"djo|"|!idƒd}!n| id|!ˆii|#ƒfƒqC| i|!dƒqCW|idi| ƒƒ|
iddi|ƒƒqùWdt|ƒt|ƒfg}$t|tƒoPxMt|ƒD];}!ˆiit ||!ƒƒ}#|$idd|!|#fƒqlWnddk}|d	i|
ƒd	i|$ƒdd	i|i!|||ƒƒS(s:Return a plain text document describing a given traceback.iÿÿÿÿ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(R,(RR.(R"(R/(s!/usr/local/lib/python2.5/cgitb.pyR0Óscs>dˆ|d<zˆiˆ|dƒSWd|dcd7<XdS(Nii(R1(R2(R3R4R5(s!/usr/local/lib/python2.5/cgitb.pyRÖss %s %ss%5d iRsglobal RRs%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
s    ("R7R8R9R:R5R;R/RR<R=R>R?R@RARBRERFRGRHRIRJR)RRtrstripRRR.RMRNRORPR
RQ(%RRRSRTRURVR7R8R9R:R;RWRXRYR[R\RR2R]R^R_RaRbRcRRdRRReRfR'RgRhRiRR(R"Rj((R4R/R5R3s!/usr/local/lib/python2.5/cgitb.pyR½slT
" 









'
"tHookcBs;eZdZdddddd„Zd„Zdd„ZRS(s?A hook to replace sys.excepthook that shows tracebacks in HTML.iiR-cCs;||_||_||_|pti|_||_dS(N(tdisplaytlogdirRSR>tstdoutR4tformat(tselfRnRoRSR4Rq((s!/usr/local/lib/python2.5/cgitb.pyt__init__s
			cCs|i|||fƒdS(N(thandle(RrRTRURV((s!/usr/local/lib/python2.5/cgitb.pyt__call__sc
Csþ|p
tiƒ}|idjo|iitƒƒn|idjotpt}t}y|||i	ƒ}Wn1ddk
}di|i|Œƒ}t
}nX|ioY|o:|iddƒiddƒ}|iid|d	ƒq|ii|d
ƒn|iidƒ|idj	oµddk}ddk}dd
g|idj}|id|d|iƒ\}	}
y7|i|	dƒ}|i|ƒ|iƒd|
}Wnd|
}nX|ii|d
ƒny|iiƒWnnXdS(NR-iÿÿÿÿRt&s&amp;t<s&lt;s<pre>s</pre>
s
s*<p>A problem occurred in a Python script.
s.txts.htmltsuffixRPtws.<p> %s contains the description of this error.s.<p> Tried to save traceback to %s, but failed.(R>texc_infoRqR4twriteRR-RtFalseRSR:RMRQtTrueRntreplaceRoRR7ttempfiletmkstemptfdopentclosetflush(
Rrtinfot	formattertplaintdocR:R7RRxtfdRGR4tmsg((s!/usr/local/lib/python2.5/cgitb.pyRtsB

!

N(R=t
__module__t__doc__RRsRuRt(((s!/usr/local/lib/python2.5/cgitb.pyRms
	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.RnRoRSRqN(RmR>t
excepthook(RnRoRSRq((s!/usr/local/lib/python2.5/cgitb.pytenable7s((R‹t
__author__t__version__R>RRRRRRR)R-RRmRtthandlerRR(((s!/usr/local/lib/python2.5/cgitb.pys<module>s	
					\D5

Man Man