]> granicus.if.org Git - python/commitdiff
Forgot to apply the futimesat change.
authorBrian Curtin <brian@python.org>
Mon, 7 Nov 2011 20:38:24 +0000 (14:38 -0600)
committerBrian Curtin <brian@python.org>
Mon, 7 Nov 2011 20:38:24 +0000 (14:38 -0600)
Modules/posixmodule.c

index 5ae92fe64852605715cce90bfd71cb023668a4b4..da42f3a287a92eb11f1acaaeaf8cf61ca70b4268 100644 (file)
@@ -9686,8 +9686,7 @@ posix_fstatat(PyObject *self, PyObject *args)
 
 #ifdef HAVE_FUTIMESAT
 PyDoc_STRVAR(posix_futimesat__doc__,
-"futimesat(dirfd, path, (atime, mtime))\n\
-futimesat(dirfd, path, None)\n\n\
+"futimesat(dirfd, path[, (atime, mtime)])\n\
 Like utime() but if path is relative, it is taken as relative to dirfd.\n\
 If path is relative and dirfd is the special value AT_FDCWD, then path\n\
 is interpreted relative to the current working directory.");
@@ -9698,11 +9697,11 @@ posix_futimesat(PyObject *self, PyObject *args)
     PyObject *opath;
     char *path;
     int res, dirfd;
-    PyObject* arg;
+    PyObject* arg = Py_None;
     time_t atime, mtime;
     long ausec, musec;
 
-    if (!PyArg_ParseTuple(args, "iO&O:futimesat",
+    if (!PyArg_ParseTuple(args, "iO&|O:futimesat",
             &dirfd, PyUnicode_FSConverter, &opath, &arg))
         return NULL;
     path = PyBytes_AsString(opath);