Author: Ronan Lamy <[email protected]>
Branch: follow_symlinks
Changeset: r83373:8c01214d65d7
Date: 2016-03-25 21:01 +0000
http://bitbucket.org/pypy/pypy/changeset/8c01214d65d7/

Log:    Make 'times' argument in os.utime() optional

diff --git a/pypy/module/posix/interp_posix.py 
b/pypy/module/posix/interp_posix.py
--- a/pypy/module/posix/interp_posix.py
+++ b/pypy/module/posix/interp_posix.py
@@ -1193,7 +1193,7 @@
     return space.wrap(ret)
 
 
-@unwrap_spec(w_ns=kwonly(WrappedDefault(None)),
+@unwrap_spec(w_times=WrappedDefault(None), w_ns=kwonly(WrappedDefault(None)),
     dir_fd=DirFD(rposix.HAVE_UTIMENSAT), follow_symlinks=kwonly(bool))
 def utime(space, w_path, w_times, w_ns, dir_fd=DEFAULT_DIR_FD, 
follow_symlinks=True):
     """utime(path, times=None, *, ns=None, dir_fd=None, follow_symlinks=True)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to