summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2007-07-11 20:02:35 (GMT)
committerThomas Heller <theller@ctypes.org>2007-07-11 20:02:35 (GMT)
commit3ed0acceee29a43d6ddac60cf3f9ba610041a519 (patch)
tree3bb745af27ac05faed7e97016cefc4a6469bb334
parentace8ba8d4b2757d9b0e6e77be83c7100fe6b5823 (diff)
downloadcpython-3ed0acceee29a43d6ddac60cf3f9ba610041a519.zip
cpython-3ed0acceee29a43d6ddac60cf3f9ba610041a519.tar.gz
cpython-3ed0acceee29a43d6ddac60cf3f9ba610041a519.tar.bz2
Must create heaptypes with unicode names.
-rw-r--r--Modules/_ctypes/_ctypes.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c
index 0c5c708..1e9a3cf 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_",