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/core/defmatrix.py | |
parent | 3cb37bbdb4bdf773b7bc0098b8d0cf940288a883 (diff) | |
download | numpy-06b316521a47470e0cce864e142c9372d14637dc.tar.gz |
using faster string methods rather than deprecated string module
Diffstat (limited to 'numpy/core/defmatrix.py')
-rw-r--r-- | numpy/core/defmatrix.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/numpy/core/defmatrix.py b/numpy/core/defmatrix.py index 659157d20..37cef8fc0 100644 --- a/numpy/core/defmatrix.py +++ b/numpy/core/defmatrix.py @@ -1,9 +1,8 @@ __all__ = ['matrix', 'bmat', 'mat', 'asmatrix'] +import sys import numeric as N from numeric import concatenate, isscalar, binary_repr -import string as str_ -import sys # make translation table _table = [None]*256 @@ -11,8 +10,7 @@ for k in range(256): _table[k] = chr(k) _table = ''.join(_table) -_numchars = str_.digits + ".-+jeEL" -del str_ +_numchars = '0123456789.-+jeEL' _todelete = [] for k in _table: if k not in _numchars: |