diff options
author | Eric Mariasis <ericmariasis829@gmail.com> | 2020-02-01 10:09:10 -0500 |
---|---|---|
committer | Eric Mariasis <ericmariasis829@gmail.com> | 2020-02-01 10:09:10 -0500 |
commit | d8f865f3a5e040cbf1871e0da86e76a31b8764ca (patch) | |
tree | 5566a263169ce252d083ef181a84ac8962c47bbd /numpy/core/src | |
parent | c4b8e255609a297733dcfb4adcad9413897d04db (diff) | |
download | numpy-d8f865f3a5e040cbf1871e0da86e76a31b8764ca.tar.gz |
more review actions
Diffstat (limited to 'numpy/core/src')
-rw-r--r-- | numpy/core/src/multiarray/descriptor.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/numpy/core/src/multiarray/descriptor.c b/numpy/core/src/multiarray/descriptor.c index 09b1c4be9..f6d70b68e 100644 --- a/numpy/core/src/multiarray/descriptor.c +++ b/numpy/core/src/multiarray/descriptor.c @@ -718,11 +718,7 @@ _convert_from_commastring(PyObject *obj, int align) PyObject *listobj; PyArray_Descr *res; PyObject *_numpy_internal; - - if (!PyUnicode_Check(obj)) { - PyErr_SetString(PyExc_TypeError, "Object needs to be a str"); - return NULL; - } + assert(PyUnicode_Check(obj)); _numpy_internal = PyImport_ImportModule("numpy.core._internal"); if (_numpy_internal == NULL) { return NULL; |