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/index_tricks.py | |
parent | a4100ba6c440bdf2a2b3cfc31995eb5e009846ee (diff) | |
download | numpy-cfd766456368777bcb0d5edabd360b3aeb02d3f8.tar.gz |
STY: Update exception style, easy ones.
Diffstat (limited to 'numpy/lib/index_tricks.py')
-rw-r--r-- | numpy/lib/index_tricks.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/lib/index_tricks.py b/numpy/lib/index_tricks.py index 69539d482..24c7bde90 100644 --- a/numpy/lib/index_tricks.py +++ b/numpy/lib/index_tricks.py @@ -70,7 +70,7 @@ def ix_(*args): for k in range(nd): new = _nx.asarray(args[k]) if (new.ndim != 1): - raise ValueError, "Cross index must be 1 dimensional" + raise ValueError("Cross index must be 1 dimensional") if issubclass(new.dtype.type, _nx.bool_): new = new.nonzero()[0] baseshape[k] = len(new) @@ -283,12 +283,12 @@ class AxisConcatenator(object): trans1d = int(vec[2]) continue except: - raise ValueError, "unknown special directive" + raise ValueError("unknown special directive") try: self.axis = int(key[k]) continue except (ValueError, TypeError): - raise ValueError, "unknown special directive" + raise ValueError("unknown special directive") elif type(key[k]) in ScalarType: newobj = array(key[k],ndmin=ndmin) scalars.append(k) |