summaryrefslogtreecommitdiff
path: root/numpy/core/src/arrayobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/src/arrayobject.c')
-rw-r--r--numpy/core/src/arrayobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c
index e8a6441e2..ddbc65d21 100644
--- a/numpy/core/src/arrayobject.c
+++ b/numpy/core/src/arrayobject.c
@@ -10487,7 +10487,7 @@ static PyObject *
arraydescr_shape_get(PyArray_Descr *self)
{
if (self->subarray == NULL) {
- return Py_BuildValue("(N)", PyInt_FromLong(1));
+ return PyTuple_New(0);
}
Py_INCREF(self->subarray->shape);
return (PyObject *)(self->subarray->shape);