Kaydet (Commit) 193a3f6d authored tarafından Fred Drake's avatar Fred Drake

Update docstrings to use te attribute names of the new structures returned

by stat and time functions.
This closes SF patch #523271.
üst d7035672
...@@ -1315,7 +1315,8 @@ posix_rmdir(PyObject *self, PyObject *args) ...@@ -1315,7 +1315,8 @@ posix_rmdir(PyObject *self, PyObject *args)
static char posix_stat__doc__[] = static char posix_stat__doc__[] =
"stat(path) -> (mode,ino,dev,nlink,uid,gid,size,atime,mtime,ctime)\n\ "stat(path) -> (st_mode, st_ino, st_dev, st_nlink, st_uid, st_gid,\n\
st_size, st_atime, st_mtime, st_ctime)\n\
Perform a stat system call on the given path."; Perform a stat system call on the given path.";
static PyObject * static PyObject *
...@@ -4056,7 +4057,8 @@ posix_wait(PyObject *self, PyObject *args) ...@@ -4056,7 +4057,8 @@ posix_wait(PyObject *self, PyObject *args)
static char posix_lstat__doc__[] = static char posix_lstat__doc__[] =
"lstat(path) -> (mode,ino,dev,nlink,uid,gid,size,atime,mtime,ctime)\n\ "lstat(path) -> (st_mode, st_ino, st_dev, st_nlink, st_uid, st_gid,\n\
st_size, st_atime, st_mtime, st_ctime)\n\
Like stat(path), but do not follow symbolic links."; Like stat(path), but do not follow symbolic links.";
static PyObject * static PyObject *
......
...@@ -285,7 +285,8 @@ time_gmtime(PyObject *self, PyObject *args) ...@@ -285,7 +285,8 @@ time_gmtime(PyObject *self, PyObject *args)
} }
static char gmtime_doc[] = static char gmtime_doc[] =
"gmtime([seconds]) -> (year,month,day,hour,minute,second,weekday,dayofyear,dst)\n\ "gmtime([seconds]) -> (tm_year, tm_mon, tm_day, tm_hour, tm_min,\n\
tm_sec, tm_wday, tm_yday, tm_isdst)\n\
\n\ \n\
Convert seconds since the Epoch to a time tuple expressing UTC (a.k.a.\n\ Convert seconds since the Epoch to a time tuple expressing UTC (a.k.a.\n\
GMT). When 'seconds' is not passed in, convert the current time instead."; GMT). When 'seconds' is not passed in, convert the current time instead.";
...@@ -302,7 +303,7 @@ time_localtime(PyObject *self, PyObject *args) ...@@ -302,7 +303,7 @@ time_localtime(PyObject *self, PyObject *args)
} }
static char localtime_doc[] = static char localtime_doc[] =
"localtime([seconds]) -> (year,month,day,hour,minute,second,weekday,dayofyear,dst)\n\ "localtime([seconds]) -> (tm_year,tm_mon,tm_day,tm_hour,tm_min,tm_sec,tm_wday,tm_yday,tm_isdst)\n\
\n\ \n\
Convert seconds since the Epoch to a time tuple expressing local time.\n\ Convert seconds since the Epoch to a time tuple expressing local time.\n\
When 'seconds' is not passed in, convert the current time instead."; When 'seconds' is not passed in, convert the current time instead.";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment