From f1cca04886d4f63f7b1ed5b382986af3a9ee6a61 Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Fri, 4 Aug 2006 23:32:12 +0000 Subject: Many name-changes in oldnumeric. This may break some numpy code that was using the oldnumeric interface. --- numpy/lib/convertnumericB.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/lib/convertnumericB.py') diff --git a/numpy/lib/convertnumericB.py b/numpy/lib/convertnumericB.py index cd26723a3..36bdd8572 100644 --- a/numpy/lib/convertnumericB.py +++ b/numpy/lib/convertnumericB.py @@ -56,7 +56,7 @@ def changeimports(fstr, name, newname): return fstr, fromall def replaceattr(astr): - astr = astr.replace("matrixmultiply","dot") + astr = astr.replace("matrixmultiply","dot") return astr def replaceother(astr): @@ -76,7 +76,7 @@ def fromstr(filestr): filestr, fromall3 = changeimports(filestr, 'RNG', 'numpy.random.oldrng') filestr, fromall3 = changeimports(filestr, 'RNG.Statistics', 'numpy.random.oldrngstats') filestr, fromall3 = changeimports(filestr, 'RandomArray', 'numpy.random.oldrandomarray') - filestr, fromall3 = changeimports(filestr, 'FFT', 'numpy.dft.old') + filestr, fromall3 = changeimports(filestr, 'FFT', 'numpy.fft.old') filestr, fromall3 = changeimports(filestr, 'MA', 'numpy.core.ma') fromall = fromall1 or fromall2 or fromall3 filestr = replaceattr(filestr) -- cgit v1.2.1