From 50c0c443d4a6aef02460052090daf5470b13ee7c Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Sat, 5 Aug 2006 02:01:26 +0000 Subject: Final fixes to oldnumeric --- numpy/core/fromnumeric.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core/fromnumeric.py') diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py index 98291f411..689bc2eff 100644 --- a/numpy/core/fromnumeric.py +++ b/numpy/core/fromnumeric.py @@ -239,7 +239,7 @@ def nonzero(a): res = _wrapit(a, 'nonzero') else: res = nonzero() - return res + return res[0] def shape(a): -- cgit v1.2.1