summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 0c5c708a46..1e9a3cfb22 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_",