diff options
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 4aa891c4e..e44e37027 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -209,7 +209,7 @@ def piecewise(x, condlist, funclist, *args, **kw): if n == n2-1: # compute the "otherwise" condition. totlist = condlist[0] for k in range(1, n): - totlist |= condlist + totlist |= condlist[k] condlist.append(~totlist) n += 1 if (n != n2): |