summaryrefslogtreecommitdiff
path: root/script/bisect-test.py
diff options
context:
space:
mode:
Diffstat (limited to 'script/bisect-test.py')
-rwxr-xr-xscript/bisect-test.py2
1 files changed, 1 insertions, 1 deletions
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: