[pypy-commit] pypy py3.5: Fix for issue #2837 in pypy3
arigo
pypy.commits at gmail.com
Thu Jul 5 11:30:53 EDT 2018
Author: Armin Rigo <arigo at 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
More information about the pypy-commit
mailing list