[Python-checkins] python/dist/src/Objects stringobject.c,2.179,2.180
nnorwitz@users.sourceforge.net
nnorwitz@users.sourceforge.net
2002年8月16日 16:20:41 -0700
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv6576/Objects
Modified Files:
stringobject.c
Log Message:
Get this to compile again if Py_USING_UNICODE is not defined.
com_error() is static in Python/compile.c.
Index: stringobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/stringobject.c,v
retrieving revision 2.179
retrieving revision 2.180
diff -C2 -d -r2.179 -r2.180
*** stringobject.c 14 Aug 2002 18:38:27 -0000 2.179
--- stringobject.c 16 Aug 2002 23:20:39 -0000 2.180
***************
*** 620,624 ****
case 'N':
if (unicode) {
! com_error(com, PyExc_ValueError,
"Unicode escapes not legal "
"when Unicode disabled");
--- 620,624 ----
case 'N':
if (unicode) {
! PyErr_SetString(PyExc_ValueError,
"Unicode escapes not legal "
"when Unicode disabled");