From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBoWO-0008R2-Vi for qemu-devel@nongnu.org; Tue, 20 Aug 2013 12:11:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VBoWK-0002XY-FH for qemu-devel@nongnu.org; Tue, 20 Aug 2013 12:11:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:14364) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBoWK-0002XS-74 for qemu-devel@nongnu.org; Tue, 20 Aug 2013 12:11:00 -0400 From: Luiz Capitulino Date: Tue, 20 Aug 2013 12:10:41 -0400 Message-Id: <1377015041-6567-12-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1377015041-6567-1-git-send-email-lcapitulino@redhat.com> References: <1377015041-6567-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PULL 11/11] scripts/qapi.py: Avoid syntax not supported by Python 2.4 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: qemu-devel@nongnu.org From: Peter Maydell 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 Signed-off-by: Luiz Capitulino --- 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