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/testing/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/testing/utils.py') diff --git a/numpy/testing/utils.py b/numpy/testing/utils.py index 16ed0f803..2d3965594 100644 --- a/numpy/testing/utils.py +++ b/numpy/testing/utils.py @@ -643,7 +643,7 @@ def assert_array_compare(comparison, x, y, err_msg='', verbose=True, names=('x', 'y')) if not cond : raise AssertionError(msg) - except ValueError, e: + except ValueError as e: import traceback efmt = traceback.format_exc() header = 'error during assertion:\n\n%s\n\n%s' % (efmt, header) -- cgit v1.2.1