diff options
author | Travis Oliphant <oliphant@enthought.com> | 2005-12-26 09:27:42 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2005-12-26 09:27:42 +0000 |
commit | 65d5f7fc7378e7d8a05125c667ae933b7a6c040f (patch) | |
tree | 6dba6f7ca866e340758b72161d22777454933e5b /scipy/base/chararray.py | |
parent | c46f1525791d6b78b80ccb3dca01581d1ff30ed4 (diff) | |
download | numpy-65d5f7fc7378e7d8a05125c667ae933b7a6c040f.tar.gz |
Changed .toscalar() method to .item()
Diffstat (limited to 'scipy/base/chararray.py')
-rw-r--r-- | scipy/base/chararray.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scipy/base/chararray.py b/scipy/base/chararray.py index c7edcd4bd..7f7573d32 100644 --- a/scipy/base/chararray.py +++ b/scipy/base/chararray.py @@ -124,7 +124,7 @@ class chararray(ndarray): for k, val in enumerate(myiter): newval = [] for chk in val[1:]: - if chk.dtype is object_ and chk.toscalar() is None: + if chk.dtype is object_ and chk.item() is None: break newval.append(chk) newitem = getattr(val[0],name)(*newval) @@ -141,7 +141,7 @@ class chararray(ndarray): for k, val in enumerate(myiter): newval = [] for chk in val[1:]: - if chk.dtype is object_ and chk.toscalar() is None: + if chk.dtype is object_ and chk.item() is None: break newval.append(chk) this_str = val[0].rstrip('\x00') |