From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnTRn-0000on-Qv for qemu-devel@nongnu.org; Thu, 22 May 2014 09:54:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WnTRg-0005dU-Iz for qemu-devel@nongnu.org; Thu, 22 May 2014 09:54:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56021) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnTRg-0005dC-Ai for qemu-devel@nongnu.org; Thu, 22 May 2014 09:54:08 -0400 From: Luiz Capitulino Date: Thu, 22 May 2014 09:53:59 -0400 Message-Id: <1400766840-20726-3-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1400766840-20726-1-git-send-email-lcapitulino@redhat.com> References: <1400766840-20726-1-git-send-email-lcapitulino@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL 2/3] scripts/qapi.py: Avoid syntax not supported by Python 2.4 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: peter.maydell@linaro.org Cc: qemu-devel@nongnu.org, anthony@codemonkey.ws 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. Reported-by: Peter Maydell Tested-by: Andreas F=C3=A4rber 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 0265b40..86e9608 100644 --- a/scripts/qapi.py +++ b/scripts/qapi.py @@ -116,7 +116,7 @@ class QAPISchema: continue try: fobj =3D open(include_path, 'r') - except IOError as e: + except IOError, e: raise QAPIExprError(expr_info, '%s: %s' % (e.strerror, include)= ) exprs_include =3D QAPISchema(fobj, include, self.include= _hist, --=20 1.9.0