diff options
author | Stephan Hoyer <shoyer@google.com> | 2018-11-13 22:18:16 -0800 |
---|---|---|
committer | Stephan Hoyer <shoyer@google.com> | 2018-11-13 22:18:46 -0800 |
commit | fc73a3ba91aaba22a6fa8778015afd32626a5645 (patch) | |
tree | 7f451efcc71e5b8aa817263e7d3bb10e09f967be /numpy/core/src | |
parent | 4b505c5709ca0974b20176d3ef133e7ed2a7d3fa (diff) | |
download | numpy-fc73a3ba91aaba22a6fa8778015afd32626a5645.tar.gz |
MAINT: fix test failures
Diffstat (limited to 'numpy/core/src')
-rw-r--r-- | numpy/core/src/multiarray/compiled_base.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/numpy/core/src/multiarray/compiled_base.c b/numpy/core/src/multiarray/compiled_base.c index e8380e3bc..17d8baf7b 100644 --- a/numpy/core/src/multiarray/compiled_base.c +++ b/numpy/core/src/multiarray/compiled_base.c @@ -1158,26 +1158,6 @@ arr_unravel_index(PyObject *self, PyObject *args, PyObject *kwds) char *kwlist[] = {"indices", "shape", "order", NULL}; - /* Continue to support the older "dims" argument in place - * of the "shape" argument. Issue an appropriate warning - * if "dims" is detected in keywords, then replace it with - * the new "shape" argument and continue processing as usual */ - - - if (kwds) { - PyObject *dims_item, *shape_item; - dims_item = PyDict_GetItemString(kwds, "dims"); - shape_item = PyDict_GetItemString(kwds, "shape"); - if (dims_item != NULL && shape_item == NULL) { - if (DEPRECATE("'shape' argument should be" - " used instead of 'dims'") < 0) { - return NULL; - } - PyDict_SetItemString(kwds, "shape", dims_item); - PyDict_DelItemString(kwds, "dims"); - } - } - if (!PyArg_ParseTupleAndKeywords(args, kwds, "OO&|O&:unravel_index", kwlist, &indices0, |