[pypy-commit] pyrepl default: manually apply pypy commit ca9508369e5a, to keep compatibility between the twos
antocuni
pypy.commits at gmail.com
Mon Feb 27 07:04:37 EST 2017
Author: Antonio Cuni <anto.cuni at gmail.com>
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:
More information about the pypy-commit
mailing list