[Python-checkins] python/dist/src/Modules arraymodule.c,2.72,2.73
mwh@sourceforge.net
mwh@sourceforge.net
Mon, 13 May 2002 03:15:02 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv12976
Modified Files:
arraymodule.c
Log Message:
array_tounicode isn't defined in --disable-unicode builds...
I have a patch to make the test work too, but it's not pretty so
I'll submit it to sf.
Index: arraymodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/arraymodule.c,v
retrieving revision 2.72
retrieving revision 2.73
diff -C2 -d -r2.72 -r2.73
*** arraymodule.c 2 May 2002 20:34:12 -0000 2.72
--- arraymodule.c 13 May 2002 10:14:59 -0000 2.73
***************
*** 1448,1455 ****
--- 1448,1459 ----
PyOS_snprintf(buf, sizeof(buf), "array('%c', ", typecode);
s = PyString_FromString(buf);
+ #ifdef Py_USING_UNICODE
if (typecode == 'c')
+ #endif
v = array_tostring(a, t_empty);
+ #ifdef Py_USING_UNICODE
else
v = array_tounicode(a, t_empty);
+ #endif
Py_DECREF(t_empty);
t = PyObject_Repr(v);