From nobody Sat Jul 5 15:54:49 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 1521296728902518.9276052849757; Sat, 17 Mar 2018 07:25:28 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9AA5B80084; Sat, 17 Mar 2018 14:25:27 +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 6E4807EE25; Sat, 17 Mar 2018 14:25:27 +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 37746181B9FF; Sat, 17 Mar 2018 14:25:27 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w2HENqO7000483 for ; Sat, 17 Mar 2018 10:23:52 -0400 Received: by smtp.corp.redhat.com (Postfix) id D4EAA76133; Sat, 17 Mar 2018 14:23:52 +0000 (UTC) Received: from mx1.redhat.com (ext-mx07.extmail.prod.ext.phx2.redhat.com [10.5.110.31]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CDF8B5DD82 for ; Sat, 17 Mar 2018 14:23:52 +0000 (UTC) Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) (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 C1106C04AC45 for ; Sat, 17 Mar 2018 14:23:51 +0000 (UTC) Received: by mail-wr0-f195.google.com with SMTP id o8so14348734wra.1 for ; Sat, 17 Mar 2018 07:23:51 -0700 (PDT) Received: from rst.Home ([2a02:c7d:692a:c500:1ebc:73f3:5f60:b131]) by smtp.gmail.com with ESMTPSA id i66sm11060550wmd.0.2018.03.17.07.23.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 17 Mar 2018 07:23:49 -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=YAKuq/JrAB8YUxZBFxfquMc5+uxKDeKM0K9xWtSMBqE=; b=MIc6iAw8Hd8VHd8nxjaDz+T6K4SQFTUJQpn07G8271SrRLaRmkFNJ8lmH4AMMTOlNP PUOsBf3haNYM+YaVRbpcrT3L1U/dtn5VG48y8/SRG4fRWU8dx7F4ICei5qwpTHxPCTX5 xMvIDeQg24p+jqfrBPSkwP6eI22tFHqGtPqMIakkS+YYrrG8bcN3Ixx9C/KR70kGC5un rtT6rYLeLfap+5QR3GIJYgmTNHW9v9FW8ioeEiuUWcS9ep0GXu4ZtsMOjW6RYohf8HmF EQ+rkrhwpOXMKKymwoz+uKlyIsfZuqW1mDNNbcFjIEkYuxPjKEj10mQPcTIbjtoCPmGj 0DmQ== 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=YAKuq/JrAB8YUxZBFxfquMc5+uxKDeKM0K9xWtSMBqE=; b=dlWfnkXfZHggQ6lyZtc/NY7NYReFUrt/PReFeSsaBlrNOzv6M5GORcWgPDA1xGqeQ3 8J5ILOGg1x/RQKk1qomVZOVGDz9Hw6KDw7JkI8hh/olNqaYHsgwZqQCUamBBgspTuNs6 0rOQync9h/+XgQYR2HH4K2HlISXCYO/R1gzsYo55ZasnZe1SG6d9BFkj2FK2AGSphCBs iDGmfbMHX1/05EHDR+1OqvbcWS74naMlph0WnDYBb3+h6tIsAY466JGlQdzqgKHbFLwl boG+pv97QdJAHONzBNxF0/Blkov92xfYe21+tdjTeiJh8YQMLsogaontgc7eU0Wqj3kO 4G6A== X-Gm-Message-State: AElRT7Er1QjfNaDpUk543423ASvmdpuSUqLtgAXixTHC0ATgNoUAvQEf Qrgu05+LDSMBO36AGoPs6+PB1pQe X-Google-Smtp-Source: AG47ELtmYWnDFJFZmqDkBUtmIkm3Xszc5UnawhcF7NY1IRfEATMzhjJLv+k79Rm2FpIeZX7DvrwuZg== X-Received: by 10.223.160.182 with SMTP id m51mr1308596wrm.187.1521296630169; Sat, 17 Mar 2018 07:23:50 -0700 (PDT) From: Radostin Stoyanov To: libvir-list@redhat.com Date: Sat, 17 Mar 2018 14:23:22 +0000 Message-Id: <20180317142340.11653-5-rstoyanov1@gmail.com> In-Reply-To: <20180317142340.11653-1-rstoyanov1@gmail.com> References: <20180317142340.11653-1-rstoyanov1@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Sat, 17 Mar 2018 14:23:52 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Sat, 17 Mar 2018 14:23:52 +0000 (UTC) for IP:'209.85.128.195' DOMAIN:'mail-wr0-f195.google.com' HELO:'mail-wr0-f195.google.com' FROM:'rstoyanov1@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.139 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_PASS) 209.85.128.195 mail-wr0-f195.google.com 209.85.128.195 mail-wr0-f195.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.31 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Cc: Radostin Stoyanov Subject: [libvirt] [PATCH 04/22] python: Add whitespace around = and % operators 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.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Sat, 17 Mar 2018 14:25:28 +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" Signed-off-by: Radostin Stoyanov Reviewed-by: Daniel P. Berrang=C3=A9 --- docs/apibuild.py | 18 +++++++++--------- docs/index.py | 6 +++--- tests/cputestdata/cpu-cpuid.py | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/apibuild.py b/docs/apibuild.py index 582c661e7..644d96f69 100755 --- a/docs/apibuild.py +++ b/docs/apibuild.py @@ -15,10 +15,10 @@ import sys import glob import re =20 -quiet=3DTrue -warnings=3D0 -debug=3DFalse -debugsym=3DNone +quiet =3D True +warnings =3D 0 +debug =3D False +debugsym =3D None =20 # # C parser analysis code @@ -132,7 +132,7 @@ def escape(raw): def uniq(items): d =3D {} for item in items: - d[item]=3D1 + d[item] =3D 1 k =3D sorted(d.keys()) return k =20 @@ -1408,7 +1408,7 @@ class CParser: value =3D "%d" % (int(value) + 1) except: self.warning("Failed to compute value of enum %s" = % (name)) - value=3D"" + value =3D "" if token[0] =3D=3D "sep" and token[1] =3D=3D ",": if commentsBeforeVal: self.cleanupComment() @@ -2286,7 +2286,7 @@ class docBuilder: if apstr !=3D "": apstr =3D apstr + " && " apstr =3D apstr + cond - output.write(" %s\n"% (apstr)) + output.write(" %s\n" % (apstr)) try: (ret, params, desc) =3D id.info output.write(" \n" % (desc)) @@ -2479,7 +2479,7 @@ class docBuilder: output.write(" \n") output.write(" \n") count =3D 0 - chunks.append(["chunk%s" % (chunk -1), first_lette= r, letter]) + chunks.append(["chunk%s" % (chunk - 1), first_lett= er, letter]) output.write(" \n" % (chunk= )) first_letter =3D id[0] chunk =3D chunk + 1 @@ -2502,7 +2502,7 @@ class docBuilder: output.write(" \n") output.write(" \n") if count !=3D 0: - chunks.append(["chunk%s" % (chunk -1), first_letter, lette= r]) + chunks.append(["chunk%s" % (chunk - 1), first_letter, lett= er]) output.write(" \n") for ch in chunks: output.write(" \n" % ( diff --git a/docs/index.py b/docs/index.py index e2f9185c3..5224324b1 100755 --- a/docs/index.py +++ b/docs/index.py @@ -58,7 +58,7 @@ libxml2.registerErrorHandler(callback, None) # The dictionary of tables required and the SQL command needed # to create them # -TABLES=3D{ +TABLES =3D { "symbols": """CREATE TABLE symbols ( name varchar(255) BINARY NOT NULL, module varchar(255) BINARY NOT NULL, @@ -116,8 +116,8 @@ TABLES=3D{ # # The XML API description file to parse # -API=3D"libvirt-api.xml" -DB=3DNone +API =3D "libvirt-api.xml" +DB =3D None =20 ######################################################################### # # diff --git a/tests/cputestdata/cpu-cpuid.py b/tests/cputestdata/cpu-cpuid.py index b74c3ce93..43c92731a 100755 --- a/tests/cputestdata/cpu-cpuid.py +++ b/tests/cputestdata/cpu-cpuid.py @@ -325,7 +325,7 @@ def formatCpuid(cpuid, path, comment): line =3D (" \n") - f.write(line %( + f.write(line % ( in_eax, in_ecx, leaf["eax"], leaf["ebx"], leaf["ecx"], leaf["edx"]= )) f.write("\n") --=20 2.14.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list