From 196c6d1df7b51f0d49ece7e93d37ee82b8ca221f Mon Sep 17 00:00:00 2001 From: Peter Andreas Entschev Date: Thu, 19 Nov 2020 10:26:17 +0100 Subject: STY: Move exception to same line of PyErr_Format Co-authored-by: Sebastian Berg --- numpy/core/src/multiarray/arrayfunction_override.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'numpy/core') 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); -- cgit v1.2.1