From 12467b6106f05bc08412f584f9331cb4374dbde1 Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Sat, 23 Sep 2006 03:32:14 +0000 Subject: Fix .take() default-axis argument bug. --- numpy/core/src/arraymethods.c | 1 - 1 file changed, 1 deletion(-) (limited to 'numpy/core/src/arraymethods.c') diff --git a/numpy/core/src/arraymethods.c b/numpy/core/src/arraymethods.c index b7411ea8e..5e3a3c334 100644 --- a/numpy/core/src/arraymethods.c +++ b/numpy/core/src/arraymethods.c @@ -11,7 +11,6 @@ array_take(PyArrayObject *self, PyObject *args, PyObject *kwds) NPY_CLIPMODE mode=NPY_RAISE; static char *kwlist[] = {"indices", "axis", "out", "mode", NULL}; - dimension=0; if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|O&O&O&", kwlist, &indices, PyArray_AxisConverter, &dimension, -- cgit v1.2.1