diff options
Diffstat (limited to 'numpy/core/ma.py')
-rw-r--r-- | numpy/core/ma.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/numpy/core/ma.py b/numpy/core/ma.py index d980fbf44..224cc4753 100644 --- a/numpy/core/ma.py +++ b/numpy/core/ma.py @@ -1264,14 +1264,6 @@ array(data = %(data)s, value = numeric.array(value, dtype=object) d = d.astype(object) result = fromnumeric.choose(m, (d, value)) - except IndexError: - #ok, if scalar - if d.shape: - raise - elif m: - result = numeric.array(value, dtype=d.dtype) - else: - result = d return result def ids (self): |