From d1a055b0cd5ad82106901a274d58563df4cd5070 Mon Sep 17 00:00:00 2001 From: "Travis E. Oliphant" Date: Fri, 11 Jan 2013 01:10:26 -0600 Subject: Fix 0-d ndincr to have correct return value. --- numpy/lib/index_tricks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib/index_tricks.py') diff --git a/numpy/lib/index_tricks.py b/numpy/lib/index_tricks.py index 6bb06b7b6..852c5f6fd 100644 --- a/numpy/lib/index_tricks.py +++ b/numpy/lib/index_tricks.py @@ -542,7 +542,7 @@ class ndindex(object): def __iter__(self): return self def ndincr(self): - return self.next() + self.next() def next(self): if self._N > 0: self._N -= 1 -- cgit v1.2.1