[Python-checkins] python/dist/src/Modules grpmodule.c,2.21,2.22

bwarsaw at users.sourceforge.net bwarsaw at users.sourceforge.net
Tue Jan 20 16:06:03 EST 2004


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv1503
Modified Files:
	grpmodule.c 
Log Message:
grp_getgrgid(), grp_getgrnam(): Patch # 868499, improvement to the error
messages.
Index: grpmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/grpmodule.c,v
retrieving revision 2.21
retrieving revision 2.22
diff -C2 -d -r2.21 -r2.22
*** grpmodule.c	3 May 2003 09:14:53 -0000	2.21
--- grpmodule.c	20 Jan 2004 21:06:00 -0000	2.22
***************
*** 91,95 ****
 return NULL;
 if ((p = getgrgid(gid)) == NULL) {
! PyErr_SetString(PyExc_KeyError, "getgrgid(): gid not found");
 return NULL;
 }
--- 91,95 ----
 return NULL;
 if ((p = getgrgid(gid)) == NULL) {
! 	PyErr_Format(PyExc_KeyError, "getgrgid(): gid not found: %d", gid);
 return NULL;
 }
***************
*** 105,109 ****
 return NULL;
 if ((p = getgrnam(name)) == NULL) {
! PyErr_SetString(PyExc_KeyError, "getgrnam(): name not found");
 return NULL;
 }
--- 105,109 ----
 return NULL;
 if ((p = getgrnam(name)) == NULL) {
! 	PyErr_Format(PyExc_KeyError, "getgrnam(): name not found: %s", name);
 return NULL;
 }


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /