We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ace7af commit 2ee3592Copy full SHA for 2ee3592
pythoni1
@@ -4,14 +4,16 @@ CPython prompt as much as possible, with the exception of allowing
4
multiline input and multiline history entries.
5
"""
6
7
-import os, sys
+import os
8
+import sys
9
+
10
from pyrepl import readline
11
from pyrepl.simple_interact import run_multiline_interactive_console
12
13
sys.modules['readline'] = readline
14
15
if os.getenv('PYTHONSTARTUP'):
- execfile(os.getenv('PYTHONSTARTUP'))
16
+ exec(open(os.getenv('PYTHONSTARTUP')).read())
17
-print 'Python', sys.version
18
+print('Python', sys.version)
19
run_multiline_interactive_console()
0 commit comments