summaryrefslogtreecommitdiff
path: root/paste/evalexception/evalcontext.py
diff options
context:
space:
mode:
Diffstat (limited to 'paste/evalexception/evalcontext.py')
-rw-r--r--paste/evalexception/evalcontext.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/paste/evalexception/evalcontext.py b/paste/evalexception/evalcontext.py
index dbd49fb..42f2efa 100644
--- a/paste/evalexception/evalcontext.py
+++ b/paste/evalexception/evalcontext.py
@@ -4,6 +4,7 @@ from six.moves import cStringIO as StringIO
import traceback
import threading
import pdb
+import six
import sys
exec_lock = threading.Lock()
@@ -34,7 +35,7 @@ class EvalContext(object):
sys.stdout = out
try:
code = compile(s, '<web>', "single", 0, 1)
- exec code in self.namespace, self.globs
+ six.exec_(code, self.globs, self.namespace)
debugger.set_continue()
except KeyboardInterrupt:
raise