diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2017-06-01 11:21:03 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-01 11:21:03 -0600 |
commit | c9f79c61f5b45843a2336f24483afd507495b847 (patch) | |
tree | 84ba0c1d0c7b26e9939535aaf5a13cdecd31697c /numpy | |
parent | f6822b41f84c9b5f68bd3ebbb2c32af184438f10 (diff) | |
parent | dfc3eba72841e95fe2be44e1194dc5f77a1e2ec2 (diff) | |
download | numpy-c9f79c61f5b45843a2336f24483afd507495b847.tar.gz |
Merge pull request #9155 from k-kapp/fix-issue-9154/master
MAINT: Take out code that will never be executed
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; } |