summaryrefslogtreecommitdiffstats
path: root/Lib/rexec.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/rexec.py')
-rw-r--r--Lib/rexec.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/rexec.py b/Lib/rexec.py
index b45fc69..674e193 100644
--- a/Lib/rexec.py
+++ b/Lib/rexec.py
@@ -553,12 +553,12 @@ def test():
return 1
if fp.isatty():
import code
- interp = code.InteractiveConsole(r.modules['__main__'].__dict__)
try:
- interp.interact(
+ code.interact(
"*** RESTRICTED *** Python %s on %s\n"
'Type "help", "copyright", "credits" or "license" '
- "for more information." % (sys.version, sys.platform))
+ "for more information." % (sys.version, sys.platform),
+ local=r.modules['__main__'].__dict__)
except SystemExit, n:
return n
else: