[Python-checkins] cpython: Forgot to apply the futimesat change.
brian.curtin
python-checkins at python.org
Mon Nov 7 21:43:53 CET 2011
http://hg.python.org/cpython/rev/d1375541d5d8
changeset: 73439:d1375541d5d8
user: Brian Curtin <brian at python.org>
date: Mon Nov 07 14:38:24 2011 -0600
summary:
Forgot to apply the futimesat change.
files:
Modules/posixmodule.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -9686,8 +9686,7 @@
#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 @@
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);
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list