scripts/qapi.py: Avoid syntax not supported by Python 2.4
commit347888113020e874027cb200bb38aa0852e42839
authorLuiz Capitulino <lcapitulino@redhat.com>
Tue, 20 May 2014 17:50:19 +0000 (20 13:50 -0400)
committerLuiz Capitulino <lcapitulino@redhat.com>
Wed, 21 May 2014 13:04:03 +0000 (21 09:04 -0400)
tree4aaeb260b28e6fa01dcb7fa2ff1fe87e34e2fd47
parent3b6959506831193f37cc830c8e111b437c0d1380
scripts/qapi.py: Avoid syntax not supported by Python 2.4

The Python "except Foo as x" syntax was only introduced in
Python 2.6, but we aim to support Python 2.4 and later.
Use the old-style "except Foo, x" syntax instead, thus
fixing configure/compile on systems with older Python.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Tested-by: Andreas Färber <andreas.faerber@web.de>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
scripts/qapi.py