diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2010-04-25 04:31:00 +0000 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2010-04-25 04:31:00 +0000 |
commit | 42c74d784350830cf14bbea0419924d4d88559f7 (patch) | |
tree | a851e822e78d9a2640d040a9e6adf15bb3b4c956 /numpy/core/src | |
parent | 472076b0e907b3aff8e6b8a96ca61072e0dc4477 (diff) | |
download | numpy-42c74d784350830cf14bbea0419924d4d88559f7.tar.gz |
BUG: Fix missing "%s" in error message format. Remove unused variable.
Diffstat (limited to 'numpy/core/src')
-rw-r--r-- | numpy/core/src/multiarray/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/src/multiarray/buffer.c b/numpy/core/src/multiarray/buffer.c index 751a8c3f7..5b8156ff2 100644 --- a/numpy/core/src/multiarray/buffer.c +++ b/numpy/core/src/multiarray/buffer.c @@ -193,7 +193,7 @@ _buffer_format_string(PyArray_Descr *descr, _tmp_string_t *str, } if (descr->subarray) { - PyObject *item, *repr; + PyObject *item; Py_ssize_t total_count = 1; Py_ssize_t dim_size; char buf[128]; @@ -758,7 +758,7 @@ _descriptor_from_pep3118_format(char *s) if (!PyArray_DescrCheck(descr)) { PyErr_Format(PyExc_RuntimeError, "internal error: numpy.core._internal._dtype_from_pep3118 " - "did not return a valid dtype", buf); + "did not return a valid dtype, got %s", buf); return NULL; } return (PyArray_Descr*)descr; |