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 <stefa...@redhat.com> > Acked-by: Fam Zheng <f...@redhat.com> > Signed-off-by: Eduardo Habkost <ehabk...@redhat.com> > --- [...] > tests/docker/docker.py | 11 +-- [...]
This patch needs an update: Signed-off-by: Eduardo Habkost <ehabk...@redhat.com> --- 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