diff options
author | Jarrod Millman <millman@berkeley.edu> | 2007-10-29 14:37:37 +0000 |
---|---|---|
committer | Jarrod Millman <millman@berkeley.edu> | 2007-10-29 14:37:37 +0000 |
commit | 06b316521a47470e0cce864e142c9372d14637dc (patch) | |
tree | f7a0867626c44d1f5f83fc8a6e884c9f2d24884c /numpy/oldnumeric/matrix.py | |
parent | 3cb37bbdb4bdf773b7bc0098b8d0cf940288a883 (diff) | |
download | numpy-06b316521a47470e0cce864e142c9372d14637dc.tar.gz |
using faster string methods rather than deprecated string module
Diffstat (limited to 'numpy/oldnumeric/matrix.py')
-rw-r--r-- | numpy/oldnumeric/matrix.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/oldnumeric/matrix.py b/numpy/oldnumeric/matrix.py index 7c5b3700c..5f8c1ca5e 100644 --- a/numpy/oldnumeric/matrix.py +++ b/numpy/oldnumeric/matrix.py @@ -2,7 +2,6 @@ __all__ = ['UserArray', 'squeeze', 'Matrix', 'asarray', 'dot', 'k', 'Numeric', 'LinearAlgebra', 'identity', 'multiply', 'types', 'string'] -import string import types from user_array import UserArray, asarray import numpy.oldnumeric as Numeric @@ -17,7 +16,7 @@ for k in range(256): _table[k] = chr(k) _table = ''.join(_table) -_numchars = string.digits + ".-+jeEL" +_numchars = '0123456789.-+jeEL' _todelete = [] for k in _table: if k not in _numchars: |