Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7ef53ef

Browse files
committed
Forgot to apply the futimesat change.
1 parent ca0fbc0 commit 7ef53ef

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Modules/posixmodule.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9686,8 +9686,7 @@ posix_fstatat(PyObject *self, PyObject *args)
96869686

96879687
#ifdef HAVE_FUTIMESAT
96889688
PyDoc_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\
96919690
Like utime() but if path is relative, it is taken as relative to dirfd.\n\
96929691
If path is relative and dirfd is the special value AT_FDCWD, then path\n\
96939692
is 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);

0 commit comments

Comments
 (0)