Author: Armin Rigo <ar...@tunes.org>
Branch: py3.5
Changeset: r94807:a74f33cd9f8f
Date: 2018-07-05 17:29 +0200
http://bitbucket.org/pypy/pypy/changeset/a74f33cd9f8f/

Log:    Fix for issue #2837 in pypy3

diff --git a/lib_pypy/pyrepl/simple_interact.py 
b/lib_pypy/pyrepl/simple_interact.py
--- a/lib_pypy/pyrepl/simple_interact.py
+++ b/lib_pypy/pyrepl/simple_interact.py
@@ -81,3 +81,8 @@
         except MemoryError:
             console.write("\nMemoryError\n")
             console.resetbuffer()
+        finally:
+            try:
+                sys.stdout.flush()
+            except:
+                pass
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to