From nobody Tue Feb 10 08:27:19 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1517592115801780.4791872826688; Fri, 2 Feb 2018 09:21:55 -0800 (PST) Received: from localhost ([::1]:40999 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehf27-0004Cu-Bk for importer@patchew.org; Fri, 02 Feb 2018 12:21:51 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38749) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehdRw-000868-O7 for qemu-devel@nongnu.org; Fri, 02 Feb 2018 10:41:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ehdQs-0003uG-EI for qemu-devel@nongnu.org; Fri, 02 Feb 2018 10:40:24 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54058) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ehdK2-0002uP-Sw for qemu-devel@nongnu.org; Fri, 02 Feb 2018 10:32:15 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D4165C05E76F; Fri, 2 Feb 2018 13:04:58 +0000 (UTC) Received: from blackfin.pond.sub.org (ovpn-116-148.ams2.redhat.com [10.36.116.148]) by smtp.corp.redhat.com (Postfix) with ESMTPS id ED9237CD62; Fri, 2 Feb 2018 13:04:24 +0000 (UTC) Received: by blackfin.pond.sub.org (Postfix, from userid 1000) id C3FC11138659; Fri, 2 Feb 2018 14:03:36 +0100 (CET) From: Markus Armbruster To: qemu-devel@nongnu.org Date: Fri, 2 Feb 2018 14:03:25 +0100 Message-Id: <20180202130336.24719-11-armbru@redhat.com> In-Reply-To: <20180202130336.24719-1-armbru@redhat.com> References: <20180202130336.24719-1-armbru@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Fri, 02 Feb 2018 13:04:58 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH RFC 10/21] qapi/common: Eliminate QAPISchema.exprs X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: marcandre.lureau@redhat.com, mdroth@linux.vnet.ibm.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Markus Armbruster Reviewed-by: Eric Blake Reviewed-by: Marc-Andr=C3=A9 Lureau --- scripts/qapi/common.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/qapi/common.py b/scripts/qapi/common.py index 6c6962a364..78e960d07c 100644 --- a/scripts/qapi/common.py +++ b/scripts/qapi/common.py @@ -1457,13 +1457,13 @@ class QAPISchema(object): def __init__(self, fname): try: parser =3D QAPISchemaParser(open(fname, 'r')) - self.exprs =3D check_exprs(parser.exprs) + exprs =3D check_exprs(parser.exprs) self.docs =3D parser.docs self._entity_dict =3D {} self._predefining =3D True self._def_predefineds() self._predefining =3D False - self._def_exprs() + self._def_exprs(exprs) self.check() except QAPIError as err: print >>sys.stderr, err @@ -1648,8 +1648,8 @@ class QAPISchema(object): name, info, doc, 'arg', self._make_members(data, info)) self._def_entity(QAPISchemaEvent(name, info, doc, data, boxed)) =20 - def _def_exprs(self): - for expr_elem in self.exprs: + def _def_exprs(self, exprs): + for expr_elem in exprs: expr =3D expr_elem['expr'] info =3D expr_elem['info'] doc =3D expr_elem.get('doc') --=20 2.13.6