diff options
author | Travis Oliphant <oliphant@enthought.com> | 2008-05-07 21:19:32 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2008-05-07 21:19:32 +0000 |
commit | bd089c209df73d91fb83e44c8c5c5ad9bda64ca1 (patch) | |
tree | d0ed7f8aef4352472de909ec17aa26d5b9abc49f /numpy/core/defmatrix.py | |
parent | c32a389417cd22a7fca720f2b1505acbe8560b3d (diff) | |
download | numpy-bd089c209df73d91fb83e44c8c5c5ad9bda64ca1.tar.gz |
Remove un-needed attribute lookup in 1.2
Diffstat (limited to 'numpy/core/defmatrix.py')
-rw-r--r-- | numpy/core/defmatrix.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/defmatrix.py b/numpy/core/defmatrix.py index c74100dda..8ac75acf1 100644 --- a/numpy/core/defmatrix.py +++ b/numpy/core/defmatrix.py @@ -261,7 +261,7 @@ class matrix(N.ndarray): if isinstance(other,(N.ndarray, list, tuple)) : # This promotes 1-D vectors to row vectors return N.dot(self, asmatrix(other)) - if N.isscalar(other) or not hasattr(other, '__rmul__') : + if isscalar(other) or not hasattr(other, '__rmul__') : return N.dot(self, other) return NotImplemented |