commit | 9aa6144b2ac2dc27bc6f79218f4ebb6c8c722a7d | [log] [tgz] |
---|---|---|
author | Christopher Dunn <cdunn2001@gmail.com> | Wed Nov 19 23:10:02 2014 -0600 |
committer | Christopher Dunn <cdunn2001@gmail.com> | Wed Nov 19 23:10:02 2014 -0600 |
tree | 8362235cbbce3a45713a059327fcd0895abcd165 | |
parent | 5fda247dab4c73f285fc6432cf9d87ff89f9d46c [diff] |
python except as
diff --git a/test/runjsontests.py b/test/runjsontests.py index ffe8bd5..5fca75a 100644 --- a/test/runjsontests.py +++ b/test/runjsontests.py
@@ -34,7 +34,7 @@ def safeReadFile( path ): try: return file( path, 'rt' ).read() - except IOError, e: + except IOError as e: return '<File "%s" is missing: %s>' % (path,e) def runAllTests( jsontest_executable_path, input_dir = None,