Skip to content

Commit

Permalink
Merge branch 'report_generic' of https://github.com/ericmariasis/numpy
Browse files Browse the repository at this point in the history
…into report_generic

* 'report_generic' of https://github.com/ericmariasis/numpy:
  Update numpy/core/src/multiarray/descriptor.c
  Update numpy/core/src/multiarray/descriptor.c
  Update numpy/core/src/multiarray/descriptor.c
  • Loading branch information
ericmariasis committed Feb 1, 2020
2 parents 5bb389f + 60da9eb commit ea28bc2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions numpy/core/src/multiarray/descriptor.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ _convert_from_array_descr(PyObject *obj, int align)
}
}
else {
PyErr_SetString(PyExc_TypeError, "First element of field tuple is neither a tuple nor base string");
PyErr_SetString(PyExc_TypeError, "First element of field tuple is neither a tuple nor str");
goto fail;
}

Expand All @@ -485,7 +485,7 @@ _convert_from_array_descr(PyObject *obj, int align)
Py_INCREF(name);
}
else {
PyErr_SetString(PyExc_TypeError, "Field names must be non-empty Unicode strings");
PyErr_SetString(PyExc_TypeError, "Field names must be non-empty strings");
goto fail;
}
}
Expand Down Expand Up @@ -729,7 +729,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");
Expand Down

0 comments on commit ea28bc2

Please sign in to comment.