Skip to content

Commit 2ee3592

Browse files
authored
Fix pythoni1 (#11)
1 parent 7ace7af commit 2ee3592

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pythoni1

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@ CPython prompt as much as possible, with the exception of allowing
44
multiline input and multiline history entries.
55
"""
66

7-
import os, sys
7+
import os
8+
import sys
9+
810
from pyrepl import readline
911
from pyrepl.simple_interact import run_multiline_interactive_console
1012

1113
sys.modules['readline'] = readline
1214

1315
if os.getenv('PYTHONSTARTUP'):
14-
execfile(os.getenv('PYTHONSTARTUP'))
16+
exec(open(os.getenv('PYTHONSTARTUP')).read())
1517

16-
print 'Python', sys.version
18+
print('Python', sys.version)
1719
run_multiline_interactive_console()

0 commit comments

Comments
 (0)