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/oldnumeric/functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/oldnumeric/functions.py') diff --git a/numpy/oldnumeric/functions.py b/numpy/oldnumeric/functions.py index 5b2b1a8bf..db62f7cb5 100644 --- a/numpy/oldnumeric/functions.py +++ b/numpy/oldnumeric/functions.py @@ -91,7 +91,7 @@ def nonzero(a): if len(res) == 1: return res[0] else: - raise ValueError, "Input argument must be 1d" + raise ValueError("Input argument must be 1d") def reshape(a, shape): return np.reshape(a, shape) -- cgit v1.2.1