/opt/alt/python37/lib/python3.7/site-packages/paste/evalexception
Edit: /opt/alt/python37/lib/python3.7/site-packages/paste/evalexception/evalcontext.pyc (2852B)
Ñò
aòNc @ s d d k l Z d d k Z d d k Z d d k Z d d k Z e i ƒ Z d e f d „ ƒ YZ d e i
f d „ ƒ YZ d S( iÿÿÿÿ( t StringIONt EvalContextc B s e Z d Z d „ Z d „ Z RS( 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.
c C s | | _ | | _ d S( N( t namespacet globs( t selfR R ( ( sP /opt/alt/python37/lib/python3.7/site-packages/paste/evalexception/evalcontext.pyt __init__ s c B sÛ e ƒ } e i ƒ e i } zž e | ƒ } | i ƒ | i e _ | e _ y6 e | d d d d ƒ } | | i
| i U| i ƒ Wn6 e
j
o
‚ n" e i d | ƒ | i ƒ n XWd | e _ e i ƒ X| i ƒ S( Ns
t singlei i t file( R t exec_lockt acquiret syst stdoutt _OutputRedirectingPdbt resett set_tracet pdbt compileR R t set_continuet KeyboardInterruptt tracebackt print_exct releaset getvalue( R t st outt save_stdoutt debuggert code( ( sP /opt/alt/python37/lib/python3.7/site-packages/paste/evalexception/evalcontext.pyt exec_expr s(
( t __name__t
__module__t __doc__R R ( ( ( sP /opt/alt/python37/lib/python3.7/site-packages/paste/evalexception/evalcontext.pyR s R c B s e Z d Z d „ Z d „ Z RS( 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.
c C s | | _ t i i | ƒ d S( N( t _OutputRedirectingPdb__outR t PdbR ( R R ( ( sP /opt/alt/python37/lib/python3.7/site-packages/paste/evalexception/evalcontext.pyR 8 s c G s= t i } | i t _ z t i i | | Œ SWd | t _ Xd S( N( R
R R R R! t trace_dispatch( R t argsR ( ( sP /opt/alt/python37/lib/python3.7/site-packages/paste/evalexception/evalcontext.pyR" <