summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r--numpy/lib/function_base.py2
1 files changed, 1 insertions, 1 deletions
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]