From: Noel Power Date: Fri, 9 Mar 2018 14:02:52 +0000 (+0000) Subject: s4/selftest: convert print func to be py2/py3 compatible X-Git-Tag: talloc-2.1.13~269 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bebdefeba912be4ff5bd93438151101671ecceda;p=thirdparty%2Fsamba.git s4/selftest: convert print func to be py2/py3 compatible Signed-off-by: Noel Power Reviewed-by: Andrew Bartlett Reviewed-by: Douglas Bagnall --- diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py index dc520e9d860..a305757e1fe 100755 --- a/source4/selftest/tests.py +++ b/source4/selftest/tests.py @@ -17,13 +17,14 @@ # by the name of the test, the environment it needs and the command to run, all # three separated by newlines. All other lines in the output are considered # comments. +from __future__ import print_function import os, sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../../selftest")) import selftesthelpers from selftesthelpers import * -print >>sys.stderr, "OPTIONS %s" % " ".join(smbtorture4_options) +print("OPTIONS %s" % " ".join(smbtorture4_options), file=sys.stderr) def plansmbtorture4testsuite(name, env, options, modname=None): return selftesthelpers.plansmbtorture4testsuite(name, env, options,