summaryrefslogtreecommitdiffstats
path: root/Demo/pysvr/pysvr.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/pysvr/pysvr.py')
-rwxr-xr-xDemo/pysvr/pysvr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/pysvr/pysvr.py b/Demo/pysvr/pysvr.py
index dd0abdc..3b692b3 100755
--- a/Demo/pysvr/pysvr.py
+++ b/Demo/pysvr/pysvr.py
@@ -108,7 +108,7 @@ def run_command(code, stdin, stdout, globals):
sys.stdout = sys.stderr = stdout
sys.stdin = stdin
try:
- exec code in globals
+ exec(code, globals)
except SystemExit, how:
raise SystemExit, how, sys.exc_info()[2]
except: