summaryrefslogtreecommitdiffstats
path: root/openstack
diff options
context:
space:
mode:
Diffstat (limited to 'openstack')
-rwxr-xr-xopenstack/common/config/generator.py2
-rw-r--r--openstack/common/processutils.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/openstack/common/config/generator.py b/openstack/common/config/generator.py
index 4251c87..3f66f74 100755
--- a/openstack/common/config/generator.py
+++ b/openstack/common/config/generator.py
@@ -207,7 +207,7 @@ def _print_opt(opt):
opt_type = None
try:
opt_type = OPTION_REGEX.search(str(type(opt))).group(0)
- except (ValueError, AttributeError), err:
+ except (ValueError, AttributeError) as err:
sys.stderr.write("%s\n" % str(err))
sys.exit(1)
opt_help += ' (' + OPT_TYPES[opt_type] + ')'
diff --git a/openstack/common/processutils.py b/openstack/common/processutils.py
index 1aa1335..02cfada 100644
--- a/openstack/common/processutils.py
+++ b/openstack/common/processutils.py
@@ -203,7 +203,7 @@ def trycmd(*args, **kwargs):
try:
out, err = execute(*args, **kwargs)
failed = False
- except ProcessExecutionError, exn:
+ except ProcessExecutionError as exn:
out, err = '', str(exn)
failed = True