[pypy-svn] r44317 - pypy/dist/pypy/module/posix

fijal at codespeak.net fijal at codespeak.net
Sun Jun 17 13:50:21 CEST 2007


Author: fijal
Date: Sun Jun 17 13:50:21 2007
New Revision: 44317

Modified:
   pypy/dist/pypy/module/posix/interp_posix.py
Log:
Accept float args as well


Modified: pypy/dist/pypy/module/posix/interp_posix.py
==============================================================================
--- pypy/dist/pypy/module/posix/interp_posix.py	(original)
+++ pypy/dist/pypy/module/posix/interp_posix.py	Sun Jun 17 13:50:21 2007
@@ -487,8 +487,8 @@
         args_w = space.unpackiterable(w_tuple)
         if len(args_w) != 2:
             raise OperationError(space.w_TypeError, space.wrap(msg))
-        actime = space.int_w(args_w[0])
-        modtime = space.int_w(args_w[1])
+        actime = space.float_w(args_w[0])
+        modtime = space.float_w(args_w[1])
         ros.utime_tuple(path, (actime, modtime))
     except OSError, e:
         raise wrap_oserror(space, e)



More information about the Pypy-commit mailing list