summaryrefslogtreecommitdiffstats
path: root/qemu/scripts/tracetool.py
diff options
context:
space:
mode:
Diffstat (limited to 'qemu/scripts/tracetool.py')
-rwxr-xr-xqemu/scripts/tracetool.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/qemu/scripts/tracetool.py b/qemu/scripts/tracetool.py
index 83bde7bda..7b82959e8 100755
--- a/qemu/scripts/tracetool.py
+++ b/qemu/scripts/tracetool.py
@@ -71,7 +71,7 @@ def main(args):
try:
opts, args = getopt.getopt(args[1:], "", long_opts)
- except getopt.GetoptError, err:
+ except getopt.GetoptError as err:
error_opt(str(err))
check_backends = False
@@ -132,7 +132,7 @@ def main(args):
try:
tracetool.generate(sys.stdin, arg_format, arg_backends,
binary=binary, probe_prefix=probe_prefix)
- except tracetool.TracetoolError, e:
+ except tracetool.TracetoolError as e:
error_opt(str(e))
if __name__ == "__main__":