diff options
Diffstat (limited to 'numpy/lib/user_array.py')
-rw-r--r-- | numpy/lib/user_array.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |