From fd2630366581049af6c9acc4b41315363b47b55a Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Tue, 5 Apr 2011 17:10:31 -0600 Subject: STY: Fix up some remaining old-style exceptions. I think that is the end of it. --- numpy/core/numeric.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/core/numeric.py') 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: -- cgit v1.2.1