From b2793ea74ea05bc64288287dd2efbe0dcae99534 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Tue, 5 Apr 2011 16:10:44 -0600 Subject: STY: Fix up some two line old-style exceptions. --- numpy/lib/shape_base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/lib/shape_base.py') diff --git a/numpy/lib/shape_base.py b/numpy/lib/shape_base.py index 719cf0814..946cf172a 100644 --- a/numpy/lib/shape_base.py +++ b/numpy/lib/shape_base.py @@ -187,8 +187,8 @@ def apply_over_axes(func, a, axes): if res.ndim == val.ndim: val = res else: - raise ValueError, "function is not returning"\ - " an array of correct shape" + raise ValueError("function is not returning " + "an array of the correct shape") return val def expand_dims(a, axis): -- cgit v1.2.1