From 3ed0acceee29a43d6ddac60cf3f9ba610041a519 Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Wed, 11 Jul 2007 20:02:35 +0000 Subject: [PATCH] Must create heaptypes with unicode names. --- Modules/_ctypes/_ctypes.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index 0c5c708a460..1e9a3cfb22a 100644 --- a/Modules/_ctypes/_ctypes.c +++ b/Modules/_ctypes/_ctypes.c @@ -3985,11 +3985,7 @@ CreateArrayType(PyObject *itemtype, Py_ssize_t length) #endif result = PyObject_CallFunction((PyObject *)&ArrayType_Type, -#if (PY_VERSION_HEX < 0x02050000) - "s(O){s:i,s:O}", -#else - "s(O){s:n,s:O}", -#endif + "U(O){s:n,s:O}", name, &Array_Type, "_length_",