Author: Antonio Cuni <[email protected]>
Branch:
Changeset: r264:62630c596d7c
Date: 2017-02-27 13:04 +0100
http://bitbucket.org/pypy/pyrepl/changeset/62630c596d7c/
Log: manually apply pypy commit ca9508369e5a, to keep compatibility
between the twos
diff --git a/pyrepl/simple_interact.py b/pyrepl/simple_interact.py
--- a/pyrepl/simple_interact.py
+++ b/pyrepl/simple_interact.py
@@ -35,11 +35,13 @@
return True
-def run_multiline_interactive_console(mainmodule=None):
+def run_multiline_interactive_console(mainmodule=None, future_flags=0):
import code
import __main__
mainmodule = mainmodule or __main__
console = code.InteractiveConsole(mainmodule.__dict__, filename='<stdin>')
+ if future_flags:
+ console.compile.compiler.flags |= future_flags
def more_lines(unicodetext):
# ooh, look at the hack:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit