From nobody Mon Apr 29 20:10:57 2024 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 1528468315330856.7200878608754; Fri, 8 Jun 2018 07:31:55 -0700 (PDT) Received: from localhost ([::1]:36132 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRIQk-0008Dv-Fh for importer@patchew.org; Fri, 08 Jun 2018 10:31:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36932) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRHae-0004PX-Hk for qemu-devel@nongnu.org; Fri, 08 Jun 2018 09:38:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fRHad-0004qn-H8 for qemu-devel@nongnu.org; Fri, 08 Jun 2018 09:38:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36364) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fRHaY-0004p4-9D; Fri, 08 Jun 2018 09:37:58 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4E8833082A27; Fri, 8 Jun 2018 13:37:57 +0000 (UTC) Received: from localhost (ovpn-116-19.gru2.redhat.com [10.97.116.19]) by smtp.corp.redhat.com (Postfix) with ESMTP id 966FE60BB3; Fri, 8 Jun 2018 13:37:46 +0000 (UTC) Date: Fri, 8 Jun 2018 10:37:45 -0300 From: Eduardo Habkost To: qemu-devel@nongnu.org Message-ID: <20180608133745.GH7451@localhost.localdomain> References: <20180608122952.2009-1-ehabkost@redhat.com> <20180608122952.2009-2-ehabkost@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20180608122952.2009-2-ehabkost@redhat.com> X-Fnord: you can see the fnord User-Agent: Mutt/1.9.2 (2017-12-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Fri, 08 Jun 2018 13:37:57 +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] fixup! python: futurize -f libfuturize.fixes.fix_print_with_import 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: Kevin Wolf , Fam Zheng , qemu-block@nongnu.org, Juan Quintela , Markus Armbruster , "Dr. David Alan Gilbert" , Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= , Stefan Hajnoczi , Cleber Rosa , =?iso-8859-1?Q?Marc-Andr=E9?= Lureau , Max Reitz , Alex =?iso-8859-1?Q?Benn=E9e?= 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 Content-Type: text/plain; charset="utf-8" On Fri, Jun 08, 2018 at 09:29:43AM -0300, Eduardo Habkost wrote: > Change all Python code to use print as a function. >=20 > This is necessary for Python 3 compatibility. >=20 > Done using: >=20 > $ py=3D$( (g grep -l -E '^#!.*python';find -name '*.py' -printf '%P\n';= ) | \ > sort -u | grep -v README.sh4) > $ futurize -w -f libfuturize.fixes.fix_print_with_import $py >=20 > Reviewed-by: Stefan Hajnoczi > Acked-by: Fam Zheng > Signed-off-by: Eduardo Habkost > --- [...] > tests/docker/docker.py | 11 +-- [...] This patch needs an update: Signed-off-by: Eduardo Habkost Reviewed-by: Stefan Hajnoczi --- tests/docker/docker.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/docker/docker.py b/tests/docker/docker.py index a18cfcbe94..306e14cf69 100755 --- a/tests/docker/docker.py +++ b/tests/docker/docker.py @@ -400,11 +400,11 @@ class ProbeCommand(SubCommand): try: docker =3D Docker() if docker._command[0] =3D=3D "docker": - print "yes" + print("yes") elif docker._command[0] =3D=3D "sudo": - print "sudo" + print("sudo") except Exception: - print "no" + print("no") =20 return =20 --=20 2.18.0.rc1.1.g3f1ff2140 --=20 Eduardo