From b2793ea74ea05bc64288287dd2efbe0dcae99534 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Tue, 5 Apr 2011 16:10:44 -0600 Subject: STY: Fix up some two line old-style exceptions. --- numpy/lib/index_tricks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/lib/index_tricks.py') 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 -- cgit v1.2.1