From nobody Sat Jul 5 15:59:02 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 1521296893341648.4369249625083; Sat, 17 Mar 2018 07:28:13 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DCD3680461; Sat, 17 Mar 2018 14:28:11 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B1F617B554; Sat, 17 Mar 2018 14:28:11 +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 775CF4CA9C; Sat, 17 Mar 2018 14:28:11 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w2HEO5Zj000624 for ; Sat, 17 Mar 2018 10:24:06 -0400 Received: by smtp.corp.redhat.com (Postfix) id EFA3380E81; Sat, 17 Mar 2018 14:24:05 +0000 (UTC) Received: from mx1.redhat.com (ext-mx03.extmail.prod.ext.phx2.redhat.com [10.5.110.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E828F77D48 for ; Sat, 17 Mar 2018 14:24:05 +0000 (UTC) Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) (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 24AE583F45 for ; Sat, 17 Mar 2018 14:24:05 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id h21so7960371wmd.1 for ; Sat, 17 Mar 2018 07:24:05 -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.24.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 17 Mar 2018 07:24:02 -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=3oa30uuJqgK/pk+Itep0ceI9gMuMz2YcZISsxX5yX+k=; b=XhhEwOmTXOyptQrWfySuZfZyz9yJ7TnzEaj/OBZChfh65niex+uP8scuCv5CycV46X +ejQt48dci+bRTUmgU569Rmx1UiPxrzr+eDHCWvhpzJPoyMG+YyKrGIdX1+XL93JtHNh J6qSqP2aZPoN4YpHDRWA33T7eX5Vcj4iggKWXAlD6FQNPJmW6M6zpuadLqWkUZJGdDNh t2EHMzLKzldh71Duvg08goUSiUN9PVGW6ZLjqH40UoQ1X9OSaXKur5iZJAutNiTetLVe UnS/VWZ0cMUzEu91BqWRQhSIAjH3guAw1l/RK7wA67Pa18OUa94mTqHSpL86qeRvR9cG xNOg== 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=3oa30uuJqgK/pk+Itep0ceI9gMuMz2YcZISsxX5yX+k=; b=Tvsl5aAybF2sPsjIiy4E3nXmKFPVijCnM2kd7exuL7mkC+CC1BeZ1URgNC/zcX5nUi BZd9g1zNW4CBglXbS9QIaDNZT4A8HHS9N9moKyG3VA2QgKPN8I4J/NgYPkDZTkIXAMYx A1L23K1QXe4nqn23aWKbiy+zkD9O7zaQA+A9Fj0gBfT3MP8M3lQLCjaSMTfbH5izg/Qs 0BUnkfHEPA4vTPbFcg3BZSEovbcXZLL1ZXt1sA+7Sl3lOIZToQgxCzK15ihKfKnpONVc Swcwcj64u+u/+WafxeQlgPnS+FVsS7ajXd6qpeIq4QLHnGCw9todxyNtV8RfwlEUyqST aSdA== X-Gm-Message-State: AElRT7Hbot5zB08F2b6UFftI8T2BF/utSG4kLU551ZczWSkAkVHok5LR ke1HbHJpXGteoHcEFHsGZvfiecW4 X-Google-Smtp-Source: AG47ELthmrGbpr0ItDkRMpT5kR3PbURlpLAdtw4T5DGxJtIybyirieC/VEFUOiHQjPeQW8dLZTxg8w== X-Received: by 10.28.61.65 with SMTP id k62mr4691735wma.140.1521296643525; Sat, 17 Mar 2018 07:24:03 -0700 (PDT) From: Radostin Stoyanov To: libvir-list@redhat.com Date: Sat, 17 Mar 2018 14:23:32 +0000 Message-Id: <20180317142340.11653-15-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.27]); Sat, 17 Mar 2018 14:24:05 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Sat, 17 Mar 2018 14:24:05 +0000 (UTC) for IP:'74.125.82.66' DOMAIN:'mail-wm0-f66.google.com' HELO:'mail-wm0-f66.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.66 mail-wm0-f66.google.com 74.125.82.66 mail-wm0-f66.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.27 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Cc: Radostin Stoyanov Subject: [libvirt] [PATCH 14/22] python3: cpu-reformat: Use the print() function 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.14 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:28:12 +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" Replace the print statement, that is only available in Py2, with a print function that is available in both Py2 and Py3 and drop the explicit python version in the shebang. Signed-off-by: Radostin Stoyanov Reviewed-by: Daniel P. Berrang=C3=A9 --- tests/cputestdata/cpu-reformat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/cputestdata/cpu-reformat.py b/tests/cputestdata/cpu-refo= rmat.py index 33976e775..d4ed8d811 100755 --- a/tests/cputestdata/cpu-reformat.py +++ b/tests/cputestdata/cpu-reformat.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python =20 import sys import json @@ -6,4 +6,4 @@ import json dec =3D json.JSONDecoder() data, pos =3D dec.raw_decode(sys.stdin.read()) json.dump(data, sys.stdout, indent=3D2, separators=3D(',', ': ')) -print +print("\n") --=20 2.14.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list