summaryrefslogtreecommitdiff
path: root/numpy/oldnumeric/arrayfns.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-02-28 17:23:13 -0700
committerCharles Harris <charlesr.harris@gmail.com>2013-03-01 08:35:12 -0700
commit3655b732bd08022dab8498b44191d6c4049bc7a8 (patch)
treea2a2210d560d5696e47a5dcf5d969faa8d21ad79 /numpy/oldnumeric/arrayfns.py
parentd1e692d70da7532b02d752d0842987333bd76c70 (diff)
downloadnumpy-3655b732bd08022dab8498b44191d6c4049bc7a8.tar.gz
2to3: Apply `raise` fixes. Closes #3077.
Replaces the raise Exception, msg: form with raise Exception(msg):
Diffstat (limited to 'numpy/oldnumeric/arrayfns.py')
-rw-r--r--numpy/oldnumeric/arrayfns.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/oldnumeric/arrayfns.py b/numpy/oldnumeric/arrayfns.py
index 683ed309d..54992de57 100644
--- a/numpy/oldnumeric/arrayfns.py
+++ b/numpy/oldnumeric/arrayfns.py
@@ -20,7 +20,7 @@ def array_set(vals1, indices, vals2):
vals1 = asarray(vals1)
vals2 = asarray(vals2)
if vals1.ndim != vals2.ndim or vals1.ndim < 1:
- raise error, "vals1 and vals2 must have same number of dimensions (>=1)"
+ raise error("vals1 and vals2 must have same number of dimensions (>=1)")
vals1[indices] = vals2
from numpy import digitize
@@ -38,7 +38,7 @@ def interp(y, x, z, typ=None):
if typ == 'f':
return res.astype('f')
- raise error, "incompatible typecode"
+ raise error("incompatible typecode")
def nz(x):
x = asarray(x,dtype=np.ubyte)