mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-14 15:05:34 +02:00
python except as
This commit is contained in:
@@ -34,7 +34,7 @@ def compareOutputs( expected, actual, message ):
|
||||
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,
|
||||
|
Reference in New Issue
Block a user