diff options
author | Tim Leslie <tim.leslie@gmail.com> | 2006-03-13 07:41:07 +0000 |
---|---|---|
committer | Tim Leslie <tim.leslie@gmail.com> | 2006-03-13 07:41:07 +0000 |
commit | 37e0c9b5b852dffee11e41d1a9ee7a11be1f662e (patch) | |
tree | 5773192125d9fb8f967bf1556b9c494dcac3ef0b /numpy/lib/index_tricks.py | |
parent | 8a65c256de43db750357e7ac468352b06c960a25 (diff) | |
download | numpy-37e0c9b5b852dffee11e41d1a9ee7a11be1f662e.tar.gz |
remove unused imports
Diffstat (limited to 'numpy/lib/index_tricks.py')
-rw-r--r-- | numpy/lib/index_tricks.py | 3 |
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) |