[pypy-commit] pypy default: I fixed this ages ago.
gutworth
noreply at buildbot.pypy.org
Wed Oct 26 03:00:10 CEST 2011
Author: Benjamin Peterson <benjamin at python.org>
Branch:
Changeset: r48465:7eea9ac595bd
Date: 2011-10-25 20:59 -0400
http://bitbucket.org/pypy/pypy/changeset/7eea9ac595bd/
Log: I fixed this ages ago.
diff --git a/pypy/rpython/module/ll_os.py b/pypy/rpython/module/ll_os.py
--- a/pypy/rpython/module/ll_os.py
+++ b/pypy/rpython/module/ll_os.py
@@ -959,8 +959,6 @@
os_ftruncate(rffi.cast(rffi.INT, fd),
rffi.cast(rffi.LONGLONG, length)))
if res < 0:
- # Note: for consistency we raise OSError, but CPython
- # raises IOError here
raise OSError(rposix.get_errno(), "os_ftruncate failed")
return extdef([int, r_longlong], s_None,
More information about the pypy-commit
mailing list