]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
scripts/qapi.py: Avoid syntax not supported by Python 2.4
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 20 Aug 2013 14:50:15 +0000 (15:50 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 24 Sep 2013 23:56:54 +0000 (18:56 -0500)
commitd6dcfd69f8b2aa2cad79486bbadef7d51f7f4e7d
treea48e62b0c8dc72d0fcb37e9746fc6a1df9e859b8
parent260790645e95891cb264c2d657648f43401ac915
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.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
(cherry picked from commit 21e0043bada1a24ae2ba6cd0051e104c0cbf9634)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
scripts/qapi.py