提交 86b227d9 编写于 作者: M Markus Armbruster

Revert "tracetool: use Python 2.4-compatible exception handling syntax"

This reverts commit 662da385.

We require Python 2.6 now (commit fec21036).
Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
Reviewed-by: NEric Blake <eblake@redhat.com>
Acked-by: NStefan Hajnoczi <stefanha@redhat.com>
Message-Id: <1450425164-24969-4-git-send-email-armbru@redhat.com>
上级 cf6c6345
......@@ -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__":
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册