summaryrefslogtreecommitdiff
path: root/numpy/lib/index_tricks.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/index_tricks.py')
-rw-r--r--numpy/lib/index_tricks.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/lib/index_tricks.py b/numpy/lib/index_tricks.py
index 96726f57c..9cd7d6202 100644
--- a/numpy/lib/index_tricks.py
+++ b/numpy/lib/index_tricks.py
@@ -8,7 +8,6 @@ import numpy.core.numeric as _nx
from numpy.core.numeric import asarray, ScalarType
import function_base
-import twodim_base as matrix_base
import numpy.core.defmatrix as matrix
makemat = matrix.matrix
@@ -34,7 +33,7 @@ def ix_(*args):
baseshape = [1]*nd
for k in range(nd):
new = _nx.array(args[k])
- if (new.ndim <> 1):
+ if (new.ndim != 1):
raise ValueError, "Cross index must be 1 dimensional"
baseshape[k] = len(new)
new.shape = tuple(baseshape)