Author: Manuel Jacob Branch: py3k Changeset: r61509:ec409daee065 Date: 2013-02-20 14:07 +0100 http://bitbucket.org/pypy/pypy/changeset/ec409daee065/
Log: Only ignore EBADF. diff --git a/pypy/interpreter/app_main.py b/pypy/interpreter/app_main.py --- a/pypy/interpreter/app_main.py +++ b/pypy/interpreter/app_main.py @@ -19,6 +19,7 @@ from __future__ import print_function, unicode_literals +import errno import sys DEBUG = False # dump exceptions before calling the except hook @@ -276,7 +277,9 @@ newline = '\n' try: buf = io.open(fd, mode, buffering, closefd=False) - except OSError: + except OSError as e: + if e.errno != errno.EBADF: + raise return None if buffering: _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit