summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorEric Mariasis <ericmariasis829@gmail.com>2020-02-01 13:16:52 -0500
committerGitHub <noreply@github.com>2020-02-01 13:16:52 -0500
commit991a787bcff518a6ab6cc65ce1a80beb3ec5e7cc (patch)
tree894dc70368cecaab85165cd90b84b90e26ac7d59 /numpy
parent9bbe90d82506d24a71e6b6001726d798d6643854 (diff)
downloadnumpy-991a787bcff518a6ab6cc65ce1a80beb3ec5e7cc.tar.gz
Update numpy/core/src/multiarray/descriptor.c
Co-Authored-By: Sebastian Berg <sebastian@sipsolutions.net>
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/src/multiarray/descriptor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/src/multiarray/descriptor.c b/numpy/core/src/multiarray/descriptor.c
index 4cae733e4..125a18307 100644
--- a/numpy/core/src/multiarray/descriptor.c
+++ b/numpy/core/src/multiarray/descriptor.c
@@ -499,7 +499,8 @@ _convert_from_array_descr(PyObject *obj, int align)
}
}
else {
- PyErr_Format(PyExc_TypeError, "Field elements must be tuples at most 3 elements, got %R", item);
+ PyErr_Format(PyExc_TypeError,
+ "Field elements must be tuples with at most 3 elements, got '%R'", item);
goto fail;
}
if ((PyDict_GetItemWithError(fields, name) != NULL)