[Numpy-svn] r8358 - trunk/numpy/core/src/multiarray

numpy-svn at scipy.org numpy-svn at scipy.org
Sun Apr 25 00:31:00 EDT 2010


Author: charris
Date: 2010-04-24 23:31:00 -0500 (Sat, 24 Apr 2010)
New Revision: 8358

Modified:
   trunk/numpy/core/src/multiarray/buffer.c
Log:
BUG: Fix missing "%s" in error message format. Remove unused variable.

Modified: trunk/numpy/core/src/multiarray/buffer.c
===================================================================
--- trunk/numpy/core/src/multiarray/buffer.c	2010-04-25 04:30:57 UTC (rev 8357)
+++ trunk/numpy/core/src/multiarray/buffer.c	2010-04-25 04:31:00 UTC (rev 8358)
@@ -193,7 +193,7 @@
     }
 
     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 @@
     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;




More information about the Numpy-svn mailing list