summaryrefslogtreecommitdiff
path: root/numpy/core/fromnumeric.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2017-11-30 00:33:12 -0800
committerEric Wieser <wieser.eric@gmail.com>2017-11-30 00:33:12 -0800
commitdcc919c7fbfbb5574a1a8b676566d06cbffa070a (patch)
tree7d4102979164fbfe99a9dcb3818aac45cf006948 /numpy/core/fromnumeric.py
parent88f8310d8c3049881f78883b70766867e9147177 (diff)
downloadnumpy-dcc919c7fbfbb5574a1a8b676566d06cbffa070a.tar.gz
BUG: Fix downcasting in _array2string
If there are no elements to remove, _leading_trailing returns a subclass view, rather than its normal behaviour of returning an ndarray copy. Since we call `asarray` in the other branch of this `if` anyway, we may as well do it in both.
Diffstat (limited to 'numpy/core/fromnumeric.py')
0 files changed, 0 insertions, 0 deletions