qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] fixup! python: futurize -f libfuturize.fixes.fix_pr


From: Eduardo Habkost
Subject: [Qemu-devel] [PATCH] fixup! python: futurize -f libfuturize.fixes.fix_print_with_import
Date: Fri, 8 Jun 2018 10:37:45 -0300
User-agent: Mutt/1.9.2 (2017-12-15)

On Fri, Jun 08, 2018 at 09:29:43AM -0300, Eduardo Habkost wrote:
> Change all Python code to use print as a function.
> 
> This is necessary for Python 3 compatibility.
> 
> Done using:
> 
>   $ py=$( (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
> 
> Reviewed-by: Stefan Hajnoczi <address@hidden>
> Acked-by: Fam Zheng <address@hidden>
> Signed-off-by: Eduardo Habkost <address@hidden>
> ---
[...]
>  tests/docker/docker.py                   | 11 +--
[...]

This patch needs an update:

Signed-off-by: Eduardo Habkost <address@hidden>
---
 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 = Docker()
             if docker._command[0] == "docker":
-                print "yes"
+                print("yes")
             elif docker._command[0] == "sudo":
-                print "sudo"
+                print("sudo")
         except Exception:
-            print "no"
+            print("no")
 
         return
 
-- 
2.18.0.rc1.1.g3f1ff2140

-- 
Eduardo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]