diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-08-05 02:00:43 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-08-05 02:00:43 +0000 |
commit | 87cb586ef026ce7d0bfc7c776c91843d23c1d806 (patch) | |
tree | 61d6eea58bb428589dd80d0c9f585bd0b61e4c3d /numpy/core/fromnumeric.py | |
parent | 65343e533fbf10a5f93970497065478e24ee6238 (diff) | |
download | numpy-87cb586ef026ce7d0bfc7c776c91843d23c1d806.tar.gz |
Final fixes to oldnumeric
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r-- | numpy/core/fromnumeric.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py index 38cf0aabf..98291f411 100644 --- a/numpy/core/fromnumeric.py +++ b/numpy/core/fromnumeric.py @@ -239,11 +239,7 @@ def nonzero(a): res = _wrapit(a, 'nonzero') else: res = nonzero() - - if len(res) == 1: - return res[0] - else: - raise ValueError, "Input argument must be 1d" + return res def shape(a): |