summaryrefslogtreecommitdiff
path: root/numpy/core/src
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2019-10-16 08:33:34 -0700
committerGitHub <noreply@github.com>2019-10-16 08:33:34 -0700
commit1185880f153c5bbc2081a17121617beb588cfb1f (patch)
treee0d195328dd2ba24425951b9bacb1a45ed0cec1b /numpy/core/src
parent27c143c15da262fe2d233c0c310a184af21a8ff3 (diff)
parentd2aeb397c192c3b1a3efee8e031a1af6e95da18d (diff)
downloadnumpy-1185880f153c5bbc2081a17121617beb588cfb1f.tar.gz
Merge pull request #14725 from WarrenWeckesser/boolsubnotsupported
MAINT: umath: Change error message for unsupported bool subtraction.
Diffstat (limited to 'numpy/core/src')
-rw-r--r--numpy/core/src/umath/ufunc_type_resolution.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/umath/ufunc_type_resolution.c b/numpy/core/src/umath/ufunc_type_resolution.c
index 9be7b63a0..f93d8229e 100644
--- a/numpy/core/src/umath/ufunc_type_resolution.c
+++ b/numpy/core/src/umath/ufunc_type_resolution.c
@@ -883,7 +883,7 @@ PyUFunc_SubtractionTypeResolver(PyUFuncObject *ufunc,
/* The type resolver would have upcast already */
if (out_dtypes[0]->type_num == NPY_BOOL) {
PyErr_Format(PyExc_TypeError,
- "numpy boolean subtract, the `-` operator, is deprecated, "
+ "numpy boolean subtract, the `-` operator, is not supported, "
"use the bitwise_xor, the `^` operator, or the logical_xor "
"function instead.");
return -1;