From 37e0c9b5b852dffee11e41d1a9ee7a11be1f662e Mon Sep 17 00:00:00 2001 From: Tim Leslie Date: Mon, 13 Mar 2006 07:41:07 +0000 Subject: remove unused imports --- numpy/lib/index_tricks.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'numpy/lib/index_tricks.py') 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) -- cgit v1.2.1