diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2013-08-20 15:50:15 +0100 |
---|---|---|
committer | SeokYeon Hwang <syeon.hwang@samsung.com> | 2013-11-07 13:48:34 +0900 |
commit | af0f917d6ca5c03532fdbe05d815c6853b8b9c0d (patch) | |
tree | eb089d1033e243345d49d1e616c11ea9d62d7a59 | |
parent | dc9e7a3710596ad16e6f0f37e30fcf2c3acc0dc3 (diff) | |
download | qemu-af0f917d6ca5c03532fdbe05d815c6853b8b9c0d.tar.gz qemu-af0f917d6ca5c03532fdbe05d815c6853b8b9c0d.tar.bz2 qemu-af0f917d6ca5c03532fdbe05d815c6853b8b9c0d.zip |
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>
-rw-r--r-- | scripts/qapi.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/qapi.py b/scripts/qapi.py index 0ebea945bb..1069310f8d 100644 --- a/scripts/qapi.py +++ b/scripts/qapi.py @@ -161,7 +161,7 @@ class QAPISchema: def parse_schema(fp): try: schema = QAPISchema(fp) - except QAPISchemaError as e: + except QAPISchemaError, e: print >>sys.stderr, e exit(1) |