Commit da07ea72 authored by Guido van Rossum's avatar Guido van Rossum

Use code.interact(), which is even simpler, *and* imports readline

when it can.
parent cb4d7ce7
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment