diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2011-04-05 15:01:52 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2011-04-05 17:38:00 -0600 |
commit | cfd766456368777bcb0d5edabd360b3aeb02d3f8 (patch) | |
tree | b38cd1bf7520faba8e2c0268e85253df7fe1f23f /numpy/lib/user_array.py | |
parent | a4100ba6c440bdf2a2b3cfc31995eb5e009846ee (diff) | |
download | numpy-cfd766456368777bcb0d5edabd360b3aeb02d3f8.tar.gz |
STY: Update exception style, easy ones.
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) |