From nobody Sat Jul 5 16:19:28 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1521528615278374.02343309232765; Mon, 19 Mar 2018 23:50:15 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A30D361BB4; Tue, 20 Mar 2018 06:50:13 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 743635D78F; Tue, 20 Mar 2018 06:50:13 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 2A239180BAD9; Tue, 20 Mar 2018 06:50:13 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w2K6nmXZ019523 for ; Tue, 20 Mar 2018 02:49:48 -0400 Received: by smtp.corp.redhat.com (Postfix) id A5BC14251; Tue, 20 Mar 2018 06:49:48 +0000 (UTC) Received: from mx1.redhat.com (ext-mx05.extmail.prod.ext.phx2.redhat.com [10.5.110.29]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A0E3CD1E4 for ; Tue, 20 Mar 2018 06:49:48 +0000 (UTC) Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1C09D23E6F4 for ; Tue, 20 Mar 2018 06:49:47 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id x82so1276318wmg.1 for ; Mon, 19 Mar 2018 23:49:47 -0700 (PDT) Received: from rst.Home ([2a02:c7d:692a:c500:1ebc:73f3:5f60:b131]) by smtp.gmail.com with ESMTPSA id g38sm1923269wra.77.2018.03.19.23.49.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Mar 2018 23:49:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=OSn+5+jz30ePcg2ZPbdvpqGJ1KeWtcJeUQEKgD7rrto=; b=RKgr+Ip9FfalFr5Tg48Du8547inYdNaNetM7yVdpPkWNa8UhhgW4vBJE0NsNko4jyp DYq/zzH9WfASus/ryhkkdYHkWP8zl9MUO0nQh/QL6pxFPwcRbaC+8uXJQ5biidfPSD9S ZF2Fhm2+wdToHnb0HecB2EV7FSwaxL3vENoYsFOpRIoDST87Krazif3nZw1o+PGrxx9i ztU1ZZER5vpcUTQU9RwUsWA2K4IAdMMyXGAaRVzf3q1kKKPL0M+Xo2ya4vKyQuOtCEw8 EnBQLVR6wUGJqcujixa1lppRr/6UWW2szCcOPgPLxHe6DKwiWlDx2tOPf+L+crwUto5Y MhtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=OSn+5+jz30ePcg2ZPbdvpqGJ1KeWtcJeUQEKgD7rrto=; b=ir/szcZkhlwcOQLZP3nfuuYTGqfdeJhd/8R8QkHWDT5XVYa9sTgbUwFdXBcA+8uLd8 YrZ+GcKQ7yGJeALveFuQrimHWHvmkh00nDpdsT+Y/+8Pn1bp65vCVj/Ui3fBd+sqF+2c QHtehksyIZRrgkpNhCkJA0PTUm4+7mmEoHrj7S/F5T2v2wTV3G+Lty1Q+9q6KA0ez5O0 twnfgJrRf8Pyjkx66xYJ4CqW01d7ZTc47aRT2D9CuYIM5Wa0rtKj1XX0mQmQnug+xJH3 7bGV8JIUD/NQpKwwSJQbgXc048IXTIZGUvKck/XHcNU1lyhgIMN/XoxgLLHXZVbXSXHM h0UA== X-Gm-Message-State: AElRT7Egmw6gZp7VpgLMED8MALtlC4tlnuUfqMsg7Lcyneszqt2ExiE7 L+JxM5uzonoL+ma8wvInWoxe77ck X-Google-Smtp-Source: AG47ELsBAwoKjs29wSB71AutX7iXKiWuQUsi3URsc1bchdr8MeVRF8irDjwUyWbemP55u/RdZM4liQ== X-Received: by 10.28.144.134 with SMTP id s128mr527416wmd.4.1521528585512; Mon, 19 Mar 2018 23:49:45 -0700 (PDT) From: Radostin Stoyanov To: libvir-list@redhat.com Date: Tue, 20 Mar 2018 06:48:59 +0000 Message-Id: <20180320064908.17723-17-rstoyanov1@gmail.com> In-Reply-To: <20180320064908.17723-1-rstoyanov1@gmail.com> References: <20180320064908.17723-1-rstoyanov1@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 20 Mar 2018 06:49:47 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 20 Mar 2018 06:49:47 +0000 (UTC) for IP:'74.125.82.65' DOMAIN:'mail-wm0-f65.google.com' HELO:'mail-wm0-f65.google.com' FROM:'rstoyanov1@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.12 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS) 74.125.82.65 mail-wm0-f65.google.com 74.125.82.65 mail-wm0-f65.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.29 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Cc: Radostin Stoyanov Subject: [libvirt] [PATCHv2 16/25] apibuild: Drop backslash between brackets X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Tue, 20 Mar 2018 06:50:14 +0000 (UTC) X-ZohoMail-DKIM: fail (Computed bodyhash is different from the expected one) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Backslash between brackets in Python is redundant. [1] 1: https://lintlyci.github.io/Flake8Rules/rules/E502.html Signed-off-by: Radostin Stoyanov --- docs/apibuild.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/apibuild.py b/docs/apibuild.py index e5e4bc83d..acfbcafb2 100755 --- a/docs/apibuild.py +++ b/docs/apibuild.py @@ -385,8 +385,8 @@ class index: up =3D idx.functions[id] # check that function condition agrees with header if up.conditionals !=3D self.functions[id].conditionals: - self.warning("Header condition differs from Function = for %s:" \ - % id) + self.warning("Header condition differs from Function" + " for %s:" % id) self.warning(" H: %s" % self.functions[id].condition= als) self.warning(" C: %s" % up.conditionals) self.functions[id].update(None, up.module, up.type, up.in= fo, up.extra) @@ -1882,7 +1882,7 @@ class CParser: raise Exception() except: self.error(("struct '%s' is not allowed to contain lon= g " - "field '%s', use long long instead") \ + "field '%s', use long long instead") % (name, field[1])) =20 # @@ -1939,8 +1939,8 @@ class CParser: if token[1] =3D=3D "[": type =3D type + token[1] token =3D self.token() - while token is not None and (token[0] !=3D "sep" or \ - token[1] !=3D ";"): + while token is not None and (token[0] !=3D "sep" or + token[1] !=3D ";"): type =3D type + token[1] token =3D self.token() =20 @@ -1954,9 +1954,9 @@ class CParser: token =3D self.parseBlock(token) else: self.comment =3D None - while token is not None and (token[0] !=3D "sep" or \ - (token[1] !=3D ';' and token[1] !=3D ',')): - token =3D self.token() + while token is not None and (token[0] !=3D "sep" or + token[1] not in ',;'): + token =3D self.token() self.comment =3D None if token is None or token[0] !=3D "sep" or (token[1] !=3D = ';' and token[1] !=3D ','): @@ -2351,11 +2351,11 @@ class docBuilder: module =3D self.modulename_file(file) output.write(" \n" % (module)) dict =3D self.headers[file] - ids =3D uniq(list(dict.functions.keys()) + \ - list(dict.variables.keys()) + \ - list(dict.macros.keys()) + \ - list(dict.typedefs.keys()) + \ - list(dict.structs.keys()) + \ + ids =3D uniq(list(dict.functions.keys()) + + list(dict.variables.keys()) + + list(dict.macros.keys()) + + list(dict.typedefs.keys()) + + list(dict.structs.keys()) + list(dict.enums.keys())) for id in ids: output.write(" \n" % (id)) --=20 2.14.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list