Author: Brian Kearns <[email protected]>
Branch: stdlib-2.7.4
Changeset: r60711:590e925436af
Date: 2013-01-30 03:58 -0500
http://bitbucket.org/pypy/pypy/changeset/590e925436af/
Log: file descriptors that don't fit in a c_int now raise OverflowError
diff --git a/pypy/interpreter/baseobjspace.py b/pypy/interpreter/baseobjspace.py
--- a/pypy/interpreter/baseobjspace.py
+++ b/pypy/interpreter/baseobjspace.py
@@ -1486,7 +1486,7 @@
raise OperationError(self.w_TypeError,
self.wrap("fileno() must return an integer")
)
- fd = self.int_w(w_fd)
+ fd = self.c_int_w(w_fd)
if fd < 0:
raise operationerrfmt(self.w_ValueError,
"file descriptor cannot be a negative integer (%d)", fd
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit