Skip to content

Commit

Permalink
Revert "Retain backward compatibility. Enforce C order."
Browse files Browse the repository at this point in the history
This reverts commit 3dc3b1b.
  • Loading branch information
certik committed Sep 29, 2012
1 parent 318a531 commit 7feb44e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions numpy/lib/index_tricks.py
Expand Up @@ -534,19 +534,11 @@ class ndindex(object):
"""
def __init__(self, *shape):
x = as_strided(_nx.zeros(1), shape=shape, strides=_nx.zeros_like(shape))
self._it = _nx.nditer(x, flags=['multi_index'], order='C')
self._it = _nx.nditer(x, flags=['multi_index'])

def __iter__(self):
return self

def ndincr(self):
"""
Increment the multi-dimensional index by one.
This method is for backward compatibility only: do not use.
"""
self.next()

def next(self):
"""
Standard iterator method, updates the index and returns the index tuple.
Expand Down

0 comments on commit 7feb44e

Please sign in to comment.