Merge "Remove python3 incompatible exception syntax."

This commit is contained in:
Jenkins 2013-07-02 14:26:15 +00:00 committed by Gerrit Code Review
commit b63e8d5241

@ -236,7 +236,7 @@ class CreateServer(show.ShowOne):
dst, src = f.split('=', 1)
try:
files[dst] = open(src)
except IOError, e:
except IOError as e:
raise exceptions.CommandError("Can't open '%s': %s" % (src, e))
if parsed_args.min > parsed_args.max:
@ -251,7 +251,7 @@ class CreateServer(show.ShowOne):
if parsed_args.user_data:
try:
userdata = open(parsed_args.user_data)
except IOError, e:
except IOError as e:
raise exceptions.CommandError("Can't open '%s': %s" %
(parsed_args.user_data, e))