[pypy-svn] r44316 - pypy/dist/pypy/rpython/module
fijal at codespeak.net
fijal at codespeak.net
Sun Jun 17 13:49:07 CEST 2007
Author: fijal
Date: Sun Jun 17 13:49:05 2007
New Revision: 44316
Modified:
pypy/dist/pypy/rpython/module/ll_os.py
Log:
Make arguments float. This is just a bit of sugar, because we don't use
utimes anyway
Modified: pypy/dist/pypy/rpython/module/ll_os.py
==============================================================================
--- pypy/dist/pypy/rpython/module/ll_os.py (original)
+++ pypy/dist/pypy/rpython/module/ll_os.py Sun Jun 17 13:49:05 2007
@@ -103,13 +103,14 @@
# XXX does not use utimes, even when available
l_path = rffi.str2charp(path)
l_utimebuf = lltype.malloc(UTIMEBUFP.TO, flavor='raw')
- l_utimebuf.c_actime, l_utimebuf.c_modtime = tp
+ actime, modtime = tp
+ l_utimebuf.c_actime, l_utimebuf.c_modtime = int(actime), int(modtime)
error = ros_utime(l_path, l_utimebuf)
lltype.free(l_path, flavor='raw')
lltype.free(l_utimebuf, flavor='raw')
if error == -1:
raise OSError(rffi.c_errno, "utime_tuple failed")
-register_external(ros.utime_tuple, [str, (int, int)], s_None, "ll_os.utime_tuple",
+register_external(ros.utime_tuple, [str, (float, float)], s_None, "ll_os.utime_tuple",
llimpl=utime_tuple_lltypeimpl)
def fake_os_open(l_path, flags, mode):
More information about the Pypy-commit
mailing list