diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2011-04-05 16:10:44 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2011-04-05 17:38:00 -0600 |
commit | b2793ea74ea05bc64288287dd2efbe0dcae99534 (patch) | |
tree | 565008825238b770fb5ab320e857dbe7a8f4c9b2 /numpy/lib | |
parent | e1a9692cc36e4353798a332c834fce7aa6cf9b54 (diff) | |
download | numpy-b2793ea74ea05bc64288287dd2efbe0dcae99534.tar.gz |
STY: Fix up some two line old-style exceptions.
Diffstat (limited to 'numpy/lib')
-rw-r--r-- | numpy/lib/index_tricks.py | 4 | ||||
-rw-r--r-- | numpy/lib/shape_base.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/numpy/lib/index_tricks.py b/numpy/lib/index_tricks.py index 24c7bde90..c29f3a6d3 100644 --- a/numpy/lib/index_tricks.py +++ b/numpy/lib/index_tricks.py @@ -267,8 +267,8 @@ class AxisConcatenator(object): newobj = newobj.swapaxes(-1,trans1d) elif isinstance(key[k],str): if k != 0: - raise ValueError, "special directives must be the"\ - "first entry." + raise ValueError("special directives must be the " + "first entry.") key0 = key[0] if key0 in 'rc': self.matrix = True diff --git a/numpy/lib/shape_base.py b/numpy/lib/shape_base.py index 719cf0814..946cf172a 100644 --- a/numpy/lib/shape_base.py +++ b/numpy/lib/shape_base.py @@ -187,8 +187,8 @@ def apply_over_axes(func, a, axes): if res.ndim == val.ndim: val = res else: - raise ValueError, "function is not returning"\ - " an array of correct shape" + raise ValueError("function is not returning " + "an array of the correct shape") return val def expand_dims(a, axis): |