Skip to content

Commit 29370c3

Browse files
committed
manually apply pypy commit ca9508369e5a, to keep compatibility between the twos
1 parent 33aac3f commit 29370c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pyrepl/simple_interact.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@ def check(): # returns False if there is a problem initializing the state
3535
return True
3636

3737

38-
def run_multiline_interactive_console(mainmodule=None):
38+
def run_multiline_interactive_console(mainmodule=None, future_flags=0):
3939
import code
4040
import __main__
4141
mainmodule = mainmodule or __main__
4242
console = code.InteractiveConsole(mainmodule.__dict__, filename='<stdin>')
43+
if future_flags:
44+
console.compile.compiler.flags |= future_flags
4345

4446
def more_lines(unicodetext):
4547
# ooh, look at the hack:

0 commit comments

Comments
 (0)