[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 11/11] scripts/qapi.py: Avoid syntax not supported by
From: |
Luiz Capitulino |
Subject: |
[Qemu-devel] [PULL 11/11] scripts/qapi.py: Avoid syntax not supported by Python 2.4 |
Date: |
Tue, 20 Aug 2013 12:10:41 -0400 |
From: Peter Maydell <address@hidden>
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 <address@hidden>
Signed-off-by: Luiz Capitulino <address@hidden>
---
scripts/qapi.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/qapi.py b/scripts/qapi.py
index 0ebea94..1069310 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)
--
1.8.1.4
- [Qemu-devel] [PULL 01/11] Convert stderr message calling error_get_pretty() to error_report(), (continued)
[Qemu-devel] [PULL 07/11] OptsVisitor: don't try to flatten overlong integer ranges, Luiz Capitulino, 2013/08/20
[Qemu-devel] [PULL 09/11] OptsVisitor: introduce unit tests, with test cases for range flattening, Luiz Capitulino, 2013/08/20
[Qemu-devel] [PULL 11/11] scripts/qapi.py: Avoid syntax not supported by Python 2.4,
Luiz Capitulino <=
[Qemu-devel] [PULL 10/11] monitor: print the invalid char in error message, Luiz Capitulino, 2013/08/20