summaryrefslogtreecommitdiff
path: root/numpy/core/numeric.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2011-04-05 15:01:52 -0600
committerCharles Harris <charlesr.harris@gmail.com>2011-04-05 17:38:00 -0600
commitcfd766456368777bcb0d5edabd360b3aeb02d3f8 (patch)
treeb38cd1bf7520faba8e2c0268e85253df7fe1f23f /numpy/core/numeric.py
parenta4100ba6c440bdf2a2b3cfc31995eb5e009846ee (diff)
downloadnumpy-cfd766456368777bcb0d5edabd360b3aeb02d3f8.tar.gz
STY: Update exception style, easy ones.
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r--numpy/core/numeric.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py
index 2dace5de1..6891ea768 100644
--- a/numpy/core/numeric.py
+++ b/numpy/core/numeric.py
@@ -977,7 +977,7 @@ def tensordot(a, b, axes=2):
if axes_b[k] < 0:
axes_b[k] += ndb
if not equal:
- raise ValueError, "shape-mismatch for sum"
+ raise ValueError("shape-mismatch for sum")
# Move the axes to sum over to the end of "a"
# and to the front of "b"
@@ -2279,7 +2279,7 @@ def seterrcall(func):
"""
if func is not None and not callable(func):
if not hasattr(func, 'write') or not callable(func.write):
- raise ValueError, "Only callable can be used as callback"
+ raise ValueError("Only callable can be used as callback")
pyvals = umath.geterrobj()
old = geterrcall()
pyvals[2] = func