Author: Matti Picus <matti.pi...@gmail.com> Branch: win32-cleanup2 Changeset: r54488:2626cbaaeb24 Date: 2012-04-17 23:47 +0300 http://bitbucket.org/pypy/pypy/changeset/2626cbaaeb24/
Log: minimal change to call validate_fd in app_posix.py 's fdopen() diff --git a/pypy/rlib/streamio.py b/pypy/rlib/streamio.py --- a/pypy/rlib/streamio.py +++ b/pypy/rlib/streamio.py @@ -93,6 +93,7 @@ # XXX XXX XXX you want do check whether the modes are compatible # otherwise you get funny results os_flags, universal, reading, writing, basemode, binary = decode_mode(mode) + rposix.validate_fd(fd) _setfd_binary(fd) stream = DiskFile(fd) return construct_stream_tower(stream, buffering, universal, reading, _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit