diff options
author | Peter Andreas Entschev <peter@entschev.com> | 2020-11-19 10:26:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-19 10:26:17 +0100 |
commit | 196c6d1df7b51f0d49ece7e93d37ee82b8ca221f (patch) | |
tree | 48fccf5759b78503bf102c177eaf9b3d606839b5 | |
parent | 5a3180cf8513910208e1653e40d9b8722d1c8756 (diff) | |
download | numpy-196c6d1df7b51f0d49ece7e93d37ee82b8ca221f.tar.gz |
STY: Move exception to same line of PyErr_Format
Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
-rw-r--r-- | numpy/core/src/multiarray/arrayfunction_override.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/core/src/multiarray/arrayfunction_override.c b/numpy/core/src/multiarray/arrayfunction_override.c index 9254c6f6d..6f4c63527 100644 --- a/numpy/core/src/multiarray/arrayfunction_override.c +++ b/numpy/core/src/multiarray/arrayfunction_override.c @@ -384,8 +384,7 @@ array_implement_c_array_function_creation( return NULL; } else if (!get_array_function(like_arg)) { - return PyErr_Format( - PyExc_TypeError, + return PyErr_Format(PyExc_TypeError, "The `like` object must implement the `__array_function__` protocol"); } PyObject *relevant_args = PyTuple_Pack(1, like_arg); |