From: Douglas Bagnall Date: Sun, 17 Mar 2019 02:38:43 +0000 (+1300) Subject: script/bisect-test: fix for py3 X-Git-Tag: ldb-2.0.5~73 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5331f913ac4dd3d94bed45846b64b89475029994;p=thirdparty%2Fsamba.git script/bisect-test: fix for py3 Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/script/bisect-test.py b/script/bisect-test.py index 313c4e3c6ce..b87df54ac09 100755 --- a/script/bisect-test.py +++ b/script/bisect-test.py @@ -58,7 +58,7 @@ cwd = os.getcwd() gitroot = find_git_root() # create a bisect script -f = tempfile.NamedTemporaryFile(delete=False) +f = tempfile.NamedTemporaryFile(delete=False, mode="w+t") f.write("set -x\n") f.write("cd %s || exit 125\n" % cwd) if opts.autogen: