File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9686,8 +9686,7 @@ posix_fstatat(PyObject *self, PyObject *args)
96869686
96879687#ifdef HAVE_FUTIMESAT
96889688PyDoc_STRVAR (posix_futimesat__doc__ ,
9689- "futimesat(dirfd, path, (atime, mtime))\n\
9690- futimesat(dirfd, path, None)\n\n\
9689+ "futimesat(dirfd, path[, (atime, mtime)])\n\
96919690Like utime() but if path is relative, it is taken as relative to dirfd.\n\
96929691If path is relative and dirfd is the special value AT_FDCWD, then path\n\
96939692is interpreted relative to the current working directory." );
@@ -9698,11 +9697,11 @@ posix_futimesat(PyObject *self, PyObject *args)
96989697 PyObject * opath ;
96999698 char * path ;
97009699 int res , dirfd ;
9701- PyObject * arg ;
9700+ PyObject * arg = Py_None ;
97029701 time_t atime , mtime ;
97039702 long ausec , musec ;
97049703
9705- if (!PyArg_ParseTuple (args , "iO&O:futimesat" ,
9704+ if (!PyArg_ParseTuple (args , "iO&| O:futimesat" ,
97069705 & dirfd , PyUnicode_FSConverter , & opath , & arg ))
97079706 return NULL ;
97089707 path = PyBytes_AsString (opath );
You can’t perform that action at this time.
0 commit comments