commit | 347888113020e874027cb200bb38aa0852e42839 | [log] [tgz] |
---|---|---|
author | Luiz Capitulino <lcapitulino@redhat.com> | Tue May 20 13:50:19 2014 -0400 |
committer | Luiz Capitulino <lcapitulino@redhat.com> | Wed May 21 09:04:03 2014 -0400 |
tree | 4aaeb260b28e6fa01dcb7fa2ff1fe87e34e2fd47 | |
parent | 3b6959506831193f37cc830c8e111b437c0d1380 [diff] |
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>