[Python-checkins] [python/cpython] 2b221b: bpo-29176 Use tmpfile() in curses module (#235)
GitHub
noreply at github.com
Thu Mar 2 05:09:03 EST 2017
Branch: refs/heads/master
Home: https://github.com/python/cpython
Commit: 2b221b78d602f1684a81b85af748fa55b1449dac
https://github.com/python/cpython/commit/2b221b78d602f1684a81b85af748fa55b1449dac
Author: Christian Heimes <christian at python.org>
Date: 2017-03-02 (Thu, 02 Mar 2017)
Changed paths:
M Modules/_cursesmodule.c
Log Message:
-----------
bpo-29176 Use tmpfile() in curses module (#235)
The curses module used mkstemp() + fopen() to create a temporary file in
/tmp. The /tmp directory does not exist on Android. The tmpfile()
function simplifies the task a lot. It creates a temporary file in a
correct directory, takes care of cleanup and returns FILE*.
tmpfile is supported on all platforms (C89, POSIX 2001, Android,
Windows).
Signed-off-by: Christian Heimes <christian at python.org>
More information about the Python-checkins
mailing list