summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 9d7c3c2..95f4613 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -5194,7 +5194,7 @@ posix_tmpfile(PyObject *self, PyObject *args)
fp = tmpfile();
if (fp == NULL)
return posix_error();
- return PyFile_FromFile(fp, "<tmpfile>", "w+", fclose);
+ return PyFile_FromFile(fp, "<tmpfile>", "w+b", fclose);
}
#endif