diff options
Diffstat (limited to 'scipy/base/convertcode.py')
-rw-r--r-- | scipy/base/convertcode.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scipy/base/convertcode.py b/scipy/base/convertcode.py index 902407873..1d93b94ed 100644 --- a/scipy/base/convertcode.py +++ b/scipy/base/convertcode.py @@ -65,8 +65,8 @@ def replaceattr(astr): astr = astr.replace(".typecode()",".dtypechar") astr = astr.replace(".iscontiguous()",".flags.contiguous") astr = astr.replace(".byteswapped()",".byteswap()") + astr = astr.replace(".toscalar()", ".item()") astr = astr.replace(".itemsize()",".itemsize") - # preserve uses of flat that should be o.k. tmpstr = flatindex_re.sub("@@@@\\2",astr) # replace other uses of flat |