summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Mariasis <ericmariasis829@gmail.com>2020-02-01 07:23:17 -0500
committerGitHub <noreply@github.com>2020-02-01 07:23:17 -0500
commit0d4b5afb340b0e0d758f44f099e23db8b4484260 (patch)
treee5b48d7573bfa56ce999444d3122a67ef5e7a18a
parent32d3a27b5ae99bd6259196f0ea311afa971b4a78 (diff)
downloadnumpy-0d4b5afb340b0e0d758f44f099e23db8b4484260.tar.gz
Update numpy/core/src/multiarray/descriptor.c
Co-Authored-By: Eric Wieser <wieser.eric@gmail.com>
-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");