[pypy-commit] pypy win32-cleanup2: minimal change to call validate_fd in app_posix.py 's fdopen()

mattip noreply at buildbot.pypy.org
Tue Apr 17 23:34:50 CEST 2012


Author: Matti Picus <matti.picus at 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,


More information about the pypy-commit mailing list