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/user_array.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib/user_array.py') diff --git a/numpy/lib/user_array.py b/numpy/lib/user_array.py index 43e9da3f2..01b0b1c19 100644 --- a/numpy/lib/user_array.py +++ b/numpy/lib/user_array.py @@ -149,7 +149,7 @@ class container(object): if len(self.shape) == 0: return func(self[0]) else: - raise TypeError, "only rank-0 arrays can be converted to Python scalars." + raise TypeError("only rank-0 arrays can be converted to Python scalars.") def __complex__(self): return self._scalarfunc(complex) def __float__(self): return self._scalarfunc(float) -- cgit v1.2.1