Ńņ # Hc@sddklZddkZddkZddkZddkZeiƒZdefd„ƒYZ dei fd„ƒYZ dS(i’’’’(tStringIONt EvalContextcBs eZdZd„Zd„ZRS(s% Class that represents a interactive interface. It has its own namespace. Use eval_context.exec_expr(expr) to run commands; the output of those commands is returned, as are print statements. This is essentially what doctest does, and is taken directly from doctest. cCs||_||_dS(N(t namespacetglobs(tselfRR((s8/usr/lib/python2.6/site-packages/weberror/evalcontext.pyt__init__s c BsŪeƒ}eiƒei}zže|ƒ}|iƒ|ie_|e_y6e |ddddƒ}||i |i U|i ƒWn6e j o ‚n"eid|ƒ|i ƒnXWd|e_eiƒX|iƒS(Nstsingleiitfile(Rt exec_locktacquiretsyststdoutt_OutputRedirectingPdbtresett set_tracetpdbtcompileRRt set_continuetKeyboardInterruptt tracebackt print_exctreleasetgetvalue(Rtstoutt save_stdouttdebuggertcode((s8/usr/lib/python2.6/site-packages/weberror/evalcontext.pyt exec_exprs(         (t__name__t __module__t__doc__RR(((s8/usr/lib/python2.6/site-packages/weberror/evalcontext.pyR s  R cBs eZdZd„Zd„ZRS(sĄ A specialized version of the python debugger that redirects stdout to a given stream when interacting with the user. Stdout is *not* redirected when traced code is executed. cCs||_tii|ƒdS(N(t_OutputRedirectingPdb__outRtPdbR(RR((s8/usr/lib/python2.6/site-packages/weberror/evalcontext.pyR6s cGs=ti}|it_ztii||ŒSWd|t_XdS(N(R R R RR!ttrace_dispatch(RtargsR((s8/usr/lib/python2.6/site-packages/weberror/evalcontext.pyR":s   (RRRRR"(((s8/usr/lib/python2.6/site-packages/weberror/evalcontext.pyR 0s ( t cStringIORRt threadingRR tLockRtobjectRR!R (((s8/usr/lib/python2.6/site-packages/weberror/evalcontext.pyts     '