Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r60812:bed57119d110
Date: 2013-02-01 11:46 -0800
http://bitbucket.org/pypy/pypy/changeset/bed57119d110/
Log: translation fix
diff --git a/pypy/interpreter/baseobjspace.py b/pypy/interpreter/baseobjspace.py
--- a/pypy/interpreter/baseobjspace.py
+++ b/pypy/interpreter/baseobjspace.py
@@ -1508,8 +1508,7 @@
)
raise
w_fd = self.call_function(w_fileno)
- if (not self.isinstance_w(w_fd, self.w_int) and
- not self.isinstance_w(w_fd, self.w_long)):
+ if not self.isinstance_w(w_fd, self.w_int):
raise OperationError(self.w_TypeError,
self.wrap("fileno() returned a non-integer")
)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit