summaryrefslogtreecommitdiff
path: root/numpy/core/numeric.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2011-04-05 17:10:31 -0600
committerCharles Harris <charlesr.harris@gmail.com>2011-04-05 17:38:00 -0600
commitfd2630366581049af6c9acc4b41315363b47b55a (patch)
tree8e17cdee3bfb7c9f1c30d793d1ce0267f1016e22 /numpy/core/numeric.py
parentb2793ea74ea05bc64288287dd2efbe0dcae99534 (diff)
downloadnumpy-fd2630366581049af6c9acc4b41315363b47b55a.tar.gz
STY: Fix up some remaining old-style exceptions.
I think that is the end of it.
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 28c3cffd7..55ab74168 100644
--- a/numpy/core/numeric.py
+++ b/numpy/core/numeric.py
@@ -1109,9 +1109,9 @@ def rollaxis(a, axis, start=0):
start += n
msg = 'rollaxis: %s (%d) must be >=0 and < %d'
if not (0 <= axis < n):
- raise ValueError, msg % ('axis', axis, n)
+ raise ValueError(msg % ('axis', axis, n))
if not (0 <= start < n+1):
- raise ValueError, msg % ('start', start, n+1)
+ raise ValueError(msg % ('start', start, n+1))
if (axis < start): # it's been removed
start -= 1
if axis==start: