mirror of https://gitee.com/openkylin/qemu.git
Revert "tracetool: use Python 2.4-compatible exception handling syntax"
This reverts commit662da3854e
. We require Python 2.6 now (commitfec2103
). Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Acked-by: Stefan Hajnoczi <stefanha@redhat.com> Message-Id: <1450425164-24969-4-git-send-email-armbru@redhat.com>
This commit is contained in:
parent
cf6c63456b
commit
86b227d984
|
@ -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__":
|
||||
|
|
Loading…
Reference in New Issue