diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2017-11-30 00:33:12 -0800 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2017-11-30 00:33:12 -0800 |
commit | dcc919c7fbfbb5574a1a8b676566d06cbffa070a (patch) | |
tree | 7d4102979164fbfe99a9dcb3818aac45cf006948 /numpy/core/fromnumeric.py | |
parent | 88f8310d8c3049881f78883b70766867e9147177 (diff) | |
download | numpy-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