summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPeter Maydell2013-08-20 16:50:15 +0200
committerLuiz Capitulino2013-08-20 17:52:00 +0200
commit21e0043bada1a24ae2ba6cd0051e104c0cbf9634 (patch)
tree93c36176b0d1b22aef13fb6b300ded0b88af3bd9 /scripts
parentmonitor: print the invalid char in error message (diff)
downloadqemu-21e0043bada1a24ae2ba6cd0051e104c0cbf9634.tar.gz
qemu-21e0043bada1a24ae2ba6cd0051e104c0cbf9634.tar.xz
qemu-21e0043bada1a24ae2ba6cd0051e104c0cbf9634.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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/qapi.py2
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)