summaryrefslogtreecommitdiff
path: root/numpy/core/fromnumeric.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r--numpy/core/fromnumeric.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py
index ed9a8449c..fa2c6d337 100644
--- a/numpy/core/fromnumeric.py
+++ b/numpy/core/fromnumeric.py
@@ -35,7 +35,7 @@ def _wrapit(obj, method, *args, **kwds):
except AttributeError:
wrap = None
result = getattr(asarray(obj),method)(*args, **kwds)
- if wrap and isinstance(result, mu.ndarray):
+ if wrap:
if not isinstance(result, mu.ndarray):
result = asarray(result)
result = wrap(result)