[Python-checkins] CVS: python/dist/src/Modules posixmodule.c,2.224,2.225 timemodule.c,2.123,2.124
Fred L. Drake
fdrake@users.sourceforge.net
Tue, 12 Mar 2002 13:38:51 -0800
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv5586
Modified Files:
posixmodule.c timemodule.c
Log Message:
Update docstrings to use te attribute names of the new structures returned
by stat and time functions.
This closes SF patch #523271.
Index: posixmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v
retrieving revision 2.224
retrieving revision 2.225
diff -C2 -d -r2.224 -r2.225
*** posixmodule.c 3 Mar 2002 23:17:02 -0000 2.224
--- posixmodule.c 12 Mar 2002 21:38:49 -0000 2.225
***************
*** 1316,1320 ****
static char posix_stat__doc__[] =
! "stat(path) -> (mode,ino,dev,nlink,uid,gid,size,atime,mtime,ctime)\n\
Perform a stat system call on the given path.";
--- 1316,1321 ----
static char posix_stat__doc__[] =
! "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.";
***************
*** 4057,4061 ****
static char posix_lstat__doc__[] =
! "lstat(path) -> (mode,ino,dev,nlink,uid,gid,size,atime,mtime,ctime)\n\
Like stat(path), but do not follow symbolic links.";
--- 4058,4063 ----
static char posix_lstat__doc__[] =
! "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.";
Index: timemodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/timemodule.c,v
retrieving revision 2.123
retrieving revision 2.124
diff -C2 -d -r2.123 -r2.124
*** timemodule.c 3 Mar 2002 02:59:16 -0000 2.123
--- timemodule.c 12 Mar 2002 21:38:49 -0000 2.124
***************
*** 286,290 ****
static char gmtime_doc[] =
! "gmtime([seconds]) -> (year,month,day,hour,minute,second,weekday,dayofyear,dst)\n\
\n\
Convert seconds since the Epoch to a time tuple expressing UTC (a.k.a.\n\
--- 286,291 ----
static char gmtime_doc[] =
! "gmtime([seconds]) -> (tm_year, tm_mon, tm_day, tm_hour, tm_min,\n\
! tm_sec, tm_wday, tm_yday, tm_isdst)\n\
\n\
Convert seconds since the Epoch to a time tuple expressing UTC (a.k.a.\n\
***************
*** 303,307 ****
static char localtime_doc[] =
! "localtime([seconds]) -> (year,month,day,hour,minute,second,weekday,dayofyear,dst)\n\
\n\
Convert seconds since the Epoch to a time tuple expressing local time.\n\
--- 304,308 ----
static char localtime_doc[] =
! "localtime([seconds]) -> (tm_year,tm_mon,tm_day,tm_hour,tm_min,tm_sec,tm_wday,tm_yday,tm_isdst)\n\
\n\
Convert seconds since the Epoch to a time tuple expressing local time.\n\