diff options
author | Eric Mariasis <ericmariasis829@gmail.com> | 2020-02-01 08:56:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-01 08:56:29 -0500 |
commit | c4163fae45429ea9ea92e1b300246e4bff70096a (patch) | |
tree | f3f40007090d1305d27349e0f064909f6f2ea471 /numpy | |
parent | b7e53b3c50e036e3621ad97d19ca278712c528ab (diff) | |
download | numpy-c4163fae45429ea9ea92e1b300246e4bff70096a.tar.gz |
Update numpy/core/src/multiarray/descriptor.c
Co-Authored-By: Eric Wieser <wieser.eric@gmail.com>
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/src/multiarray/descriptor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/multiarray/descriptor.c b/numpy/core/src/multiarray/descriptor.c index 3b5c19211..a36fa1ca1 100644 --- a/numpy/core/src/multiarray/descriptor.c +++ b/numpy/core/src/multiarray/descriptor.c @@ -242,7 +242,7 @@ static PyArray_Descr * _convert_from_tuple(PyObject *obj, int align) { if (PyTuple_GET_SIZE(obj) != 2) { - PyErr_Format(PyExc_TypeError, "Tuple must have size 2, but has size [%d]", PyTuple_GET_SIZE(obj)); + PyErr_Format(PyExc_TypeError, "Tuple must have size 2, but has size %d", PyTuple_GET_SIZE(obj)); return NULL; } PyArray_Descr *type = _convert_from_any(PyTuple_GET_ITEM(obj, 0), align); |