diff options
author | Christian Heimes <christian@python.org> | 2017-03-02 10:09:01 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-03-02 10:09:01 (GMT) |
commit | 2b221b78d602f1684a81b85af748fa55b1449dac (patch) | |
tree | 2b414be1bdeb518fd4d0c4179e56a072322e5857 /Lib/asyncio/test_utils.py | |
parent | cb90f261226fc2d4db60a68b53a788e8ae5905cf (diff) | |
download | cpython-2b221b78d602f1684a81b85af748fa55b1449dac.zip cpython-2b221b78d602f1684a81b85af748fa55b1449dac.tar.gz cpython-2b221b78d602f1684a81b85af748fa55b1449dac.tar.bz2 |
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@python.org>
Diffstat (limited to 'Lib/asyncio/test_utils.py')
0 files changed, 0 insertions, 0 deletions