[Python-checkins] python/dist/src/Python codecs.c,2.13,2.13.26.1
loewis@users.sourceforge.net
loewis@users.sourceforge.net
Thu, 26 Sep 2002 09:04:34 -0700
Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv27049
Modified Files:
Tag: release22-maint
codecs.c
Log Message:
Add encoding in LookupError. Fixes #615013.
Index: codecs.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/codecs.c,v
retrieving revision 2.13
retrieving revision 2.13.26.1
diff -C2 -d -r2.13 -r2.13.26.1
*** codecs.c 26 Sep 2000 05:46:01 -0000 2.13
--- codecs.c 26 Sep 2002 16:04:31 -0000 2.13.26.1
***************
*** 198,203 ****
if (i == len) {
/* XXX Perhaps we should cache misses too ? */
! PyErr_SetString(PyExc_LookupError,
! "unknown encoding");
goto onError;
}
--- 198,203 ----
if (i == len) {
/* XXX Perhaps we should cache misses too ? */
! PyErr_Format(PyExc_LookupError,
! "unknown encoding: %s", encoding);
goto onError;
}