From 705bf928e1256a06019c75ee945370fbe89cdde7 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Tue, 26 Feb 2013 20:04:59 -0700 Subject: 2to3: Use modern exception syntax. Example: except ValueError,msg: -> except ValueError as msg: --- numpy/linalg/tests/test_linalg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/linalg/tests') diff --git a/numpy/linalg/tests/test_linalg.py b/numpy/linalg/tests/test_linalg.py index 623939863..cfb412882 100644 --- a/numpy/linalg/tests/test_linalg.py +++ b/numpy/linalg/tests/test_linalg.py @@ -63,7 +63,7 @@ class LinalgTestCase(object): try: self.do(a, b) raise AssertionError("%s should fail with empty matrices", self.__name__[5:]) - except linalg.LinAlgError, e: + except linalg.LinAlgError as e: pass def test_nonarray(self): -- cgit v1.2.1