%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/alt/python27/lib/python2.7/site-packages/paste/evalexception/
Upload File :
Create Path :
Current File : //proc/self/root/opt/alt/python27/lib/python2.7/site-packages/paste/evalexception/evalcontext.pyc

�
a�Nc@sddlmZddlZddlZddlZddlZej�Zdefd��YZ	dej
fd��YZdS(i����(tStringIONtEvalContextcBs 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((sP/opt/alt/python27/lib/python2.7/site-packages/paste/evalexception/evalcontext.pyt__init__s	cBs�e�}ej�ej}z�e|�}|j�|je_|e_y6e	|dddd�}||j
|jU|j�Wn4e
k
r��n!ejd|�|j�nXWd|e_ej�X|j�S(Ns<web>tsingleiitfile(Rt	exec_locktacquiretsyststdoutt_OutputRedirectingPdbtresett	set_tracetpdbtcompileRRtset_continuetKeyboardInterruptt	tracebackt	print_exctreleasetgetvalue(Rtstouttsave_stdouttdebuggertcode((sP/opt/alt/python27/lib/python2.7/site-packages/paste/evalexception/evalcontext.pyt	exec_exprs(	
	
	
	(t__name__t
__module__t__doc__RR(((sP/opt/alt/python27/lib/python2.7/site-packages/paste/evalexception/evalcontext.pyRs		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||_tjj|�dS(N(t_OutputRedirectingPdb__outRtPdbR(RR((sP/opt/alt/python27/lib/python2.7/site-packages/paste/evalexception/evalcontext.pyR8s	cGs=tj}|jt_ztjj||�SWd|t_XdS(N(R
RR RR!ttrace_dispatch(RtargsR((sP/opt/alt/python27/lib/python2.7/site-packages/paste/evalexception/evalcontext.pyR"<s
	(RRRRR"(((sP/opt/alt/python27/lib/python2.7/site-packages/paste/evalexception/evalcontext.pyR2s	(t	cStringIORRt	threadingRR
tLockRtobjectRR!R(((sP/opt/alt/python27/lib/python2.7/site-packages/paste/evalexception/evalcontext.pyt<module>s'

Zerion Mini Shell 1.0