mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-12 22:36:53 +02:00
python except as
This commit is contained in:
@@ -6,7 +6,7 @@ def fix_source_eol( path, is_dry_run = True, verbose = True, eol = '\n' ):
|
||||
raise ValueError( 'Path "%s" is not a file' % path )
|
||||
try:
|
||||
f = open(path, 'rb')
|
||||
except IOError, msg:
|
||||
except IOError as msg:
|
||||
print >> sys.stderr, "%s: I/O Error: %s" % (file, str(msg))
|
||||
return False
|
||||
try:
|
||||
|
Reference in New Issue
Block a user