summaryrefslogtreecommitdiff
path: root/numpy/core/oldnumeric.py
diff options
context:
space:
mode:
authorTim Hochberg <tim_hochberg@local>2006-03-31 16:28:24 +0000
committerTim Hochberg <tim_hochberg@local>2006-03-31 16:28:24 +0000
commit827b79a954d3f222bb1f618fd0a14e606dbd7e6e (patch)
treeb367d689b362e9325ba97ebf13239922372c3a91 /numpy/core/oldnumeric.py
parentf0c7ba02e42d71d120cc782395f01acc6ae15db0 (diff)
downloadnumpy-827b79a954d3f222bb1f618fd0a14e606dbd7e6e.tar.gz
Fixed _wrapit so that it correctly handled non-array return values.
Diffstat (limited to 'numpy/core/oldnumeric.py')
-rw-r--r--numpy/core/oldnumeric.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/oldnumeric.py b/numpy/core/oldnumeric.py
index 978104469..b8685d69e 100644
--- a/numpy/core/oldnumeric.py
+++ b/numpy/core/oldnumeric.py
@@ -166,7 +166,7 @@ def _wrapit(obj, method, *args, **kwds):
except AttributeError:
wrap = None
result = getattr(asarray(obj),method)(*args, **kwds)
- if wrap:
+ if wrap and isinstance(result, mu.ndarray):
if not isinstance(result, mu.ndarray):
result = asarray(result)
result = wrap(result)