summaryrefslogtreecommitdiff
path: root/numpy/core/src/arraymethods.c
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-01-20 03:31:30 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-01-20 03:31:30 +0000
commit502af603c2b1cc85696fc62f4b0a79842887f07b (patch)
tree2114e089c1ba25aa4e1d605f1993cdb5e34dca3c /numpy/core/src/arraymethods.c
parent45475dd140ce5ce8e9f2f9cbd5573e5b288c87dd (diff)
downloadnumpy-502af603c2b1cc85696fc62f4b0a79842887f07b.tar.gz
Fix so that arrays never become scalars using .copy() command
Diffstat (limited to 'numpy/core/src/arraymethods.c')
-rw-r--r--numpy/core/src/arraymethods.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/arraymethods.c b/numpy/core/src/arraymethods.c
index 27e8d4866..c4ce3e072 100644
--- a/numpy/core/src/arraymethods.c
+++ b/numpy/core/src/arraymethods.c
@@ -641,7 +641,7 @@ array_copy(PyArrayObject *self, PyObject *args)
int fortran=0;
if (!PyArg_ParseTuple(args, "|i", &fortran)) return NULL;
- return _ARET(PyArray_NewCopy(self, fortran));
+ return PyArray_NewCopy(self, fortran);
}
static char doc_resize[] = "self.resize(new_shape). "\