summaryrefslogtreecommitdiff
path: root/numpy/core/fromnumeric.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-08-05 02:00:43 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-08-05 02:00:43 +0000
commit87cb586ef026ce7d0bfc7c776c91843d23c1d806 (patch)
tree61d6eea58bb428589dd80d0c9f585bd0b61e4c3d /numpy/core/fromnumeric.py
parent65343e533fbf10a5f93970497065478e24ee6238 (diff)
downloadnumpy-87cb586ef026ce7d0bfc7c776c91843d23c1d806.tar.gz
Final fixes to oldnumeric
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r--numpy/core/fromnumeric.py6
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):