Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r77945:76611312113e
Date: 2015-06-07 22:29 +0200
http://bitbucket.org/pypy/pypy/changeset/76611312113e/

Log:    From this last-level helper, don't propagate further OSErrors

diff --git a/pypy/goal/targetpypystandalone.py 
b/pypy/goal/targetpypystandalone.py
--- a/pypy/goal/targetpypystandalone.py
+++ b/pypy/goal/targetpypystandalone.py
@@ -21,7 +21,10 @@
     this_dir = os.path.dirname(sys.argv[0])
 
 def debug(msg):
-    os.write(2, "debug: " + msg + '\n')
+    try:
+        os.write(2, "debug: " + msg + '\n')
+    except OSError:
+        pass     # bah, no working stderr :-(
 
 # __________  Entry point  __________
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to