summaryrefslogtreecommitdiff
path: root/numpy/lib
diff options
context:
space:
mode:
authorTravis E. Oliphant <teoliphant@gmail.com>2013-01-11 01:10:26 -0600
committerTravis E. Oliphant <teoliphant@gmail.com>2013-01-11 01:11:12 -0600
commitd1a055b0cd5ad82106901a274d58563df4cd5070 (patch)
tree927e02f486b2d3bb300d12c7c8ecad3b07f42c46 /numpy/lib
parentaef2cf73aafc9a945d88cb9464f62135b177a2f4 (diff)
downloadnumpy-d1a055b0cd5ad82106901a274d58563df4cd5070.tar.gz
Fix 0-d ndincr to have correct return value.
Diffstat (limited to 'numpy/lib')
-rw-r--r--numpy/lib/index_tricks.py2
1 files changed, 1 insertions, 1 deletions
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