diff options
author | Michael W. Hudson <mwh@python.net> | 2002-05-13 10:14:59 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2002-05-13 10:14:59 (GMT) |
commit | 1755ad9b026d63bbff707e0d33b738e18499b3e9 (patch) | |
tree | 9dbdb8b0f1e3346104aa7ac313048bc6480a76f8 /Modules | |
parent | e1c67d1dc028b59805d29ee7e943e342da55d270 (diff) | |
download | cpython-1755ad9b026d63bbff707e0d33b738e18499b3e9.zip cpython-1755ad9b026d63bbff707e0d33b738e18499b3e9.tar.gz cpython-1755ad9b026d63bbff707e0d33b738e18499b3e9.tar.bz2 |
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.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/arraymodule.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 8d3e026..f10d442 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -1447,10 +1447,14 @@ array_repr(arrayobject *a) PyObject *t_empty = PyTuple_New(0); 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); Py_XDECREF(v); |