diff options
author | k_kapp@yahoo.com <k_kapp@yahoo.com> | 2017-05-21 23:42:01 +0200 |
---|---|---|
committer | k_kapp@yahoo.com <k_kapp@yahoo.com> | 2017-05-21 23:42:01 +0200 |
commit | dfc3eba72841e95fe2be44e1194dc5f77a1e2ec2 (patch) | |
tree | 1101b186d94c59d664f9d637b763b5cd258d4dd2 /numpy | |
parent | d1ff805c49461f639465192c8c8412fd3abe4c6b (diff) | |
download | numpy-dfc3eba72841e95fe2be44e1194dc5f77a1e2ec2.tar.gz |
MAINT: Take out code that will never be executed
See issue #9154
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/src/multiarray/ctors.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/numpy/core/src/multiarray/ctors.c b/numpy/core/src/multiarray/ctors.c index 7eae0beaa..6f7563e14 100644 --- a/numpy/core/src/multiarray/ctors.c +++ b/numpy/core/src/multiarray/ctors.c @@ -1529,12 +1529,6 @@ PyArray_GetArrayParamsFromObject(PyObject *op, if (!writeable) { tmp = PyArray_FromArrayAttr(op, requested_dtype, context); if (tmp != Py_NotImplemented) { - if (writeable - && PyArray_FailUnlessWriteable((PyArrayObject *)tmp, - "array interface object") < 0) { - Py_DECREF(tmp); - return -1; - } *out_arr = (PyArrayObject *)tmp; return (*out_arr) == NULL ? -1 : 0; } |