From cfd766456368777bcb0d5edabd360b3aeb02d3f8 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Tue, 5 Apr 2011 15:01:52 -0600 Subject: STY: Update exception style, easy ones. --- numpy/lib/function_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib/function_base.py') diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 0709499ea..df579a539 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -3049,7 +3049,7 @@ def _compute_qth_percentile(sorted, q, axis, out): q = q / 100.0 if (q < 0) or (q > 1): - raise ValueError, "percentile must be either in the range [0,100]" + raise ValueError("percentile must be either in the range [0,100]") indexer = [slice(None)] * sorted.ndim Nx = sorted.shape[axis] -- cgit v1.2.1