summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/src/multiarray/descriptor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/multiarray/descriptor.c b/numpy/core/src/multiarray/descriptor.c
index 9e5cdb42f..8691191ef 100644
--- a/numpy/core/src/multiarray/descriptor.c
+++ b/numpy/core/src/multiarray/descriptor.c
@@ -727,7 +727,7 @@ _convert_from_commastring(PyObject *obj, int align)
PyObject *_numpy_internal;
if (!PyUnicode_Check(obj)) {
- PyErr_SetString(PyExc_TypeError, "Object needs to be a Unicode object");
+ PyErr_SetString(PyExc_TypeError, "Object needs to be a str");
return NULL;
}
_numpy_internal = PyImport_ImportModule("numpy.core._internal");