[pypy-commit] pypy follow_symlinks: Make 'times' argument in os.utime() optional

rlamy pypy.commits at gmail.com
Fri Mar 25 17:01:54 EDT 2016


Author: Ronan Lamy <ronan.lamy at gmail.com>
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)
 
 
- at unwrap_spec(w_ns=kwonly(WrappedDefault(None)),
+ at 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)


More information about the pypy-commit mailing list