From 0283b6f480b7239dc1390dadf29fcb5e1f2516e3 Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Sun, 15 Jan 2006 03:10:36 +0000 Subject: Moved .dtypedescr to .dtype; .dtype->.dtype.type; .dtypestr ->.dtype.str; .dtypechar -> .dtype.char --- numpy/lib/convertcode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib/convertcode.py') diff --git a/numpy/lib/convertcode.py b/numpy/lib/convertcode.py index 6a62f2502..3e0a679f0 100644 --- a/numpy/lib/convertcode.py +++ b/numpy/lib/convertcode.py @@ -61,7 +61,7 @@ def changeimports(fstr, name, newname): return fstr, fromall def replaceattr(astr): - astr = astr.replace(".typecode()",".dtypechar") + astr = astr.replace(".typecode()",".dtype.char") astr = astr.replace(".iscontiguous()",".flags.contiguous") astr = astr.replace(".byteswapped()",".byteswap()") astr = astr.replace(".toscalar()", ".item()") -- cgit v1.2.1