bpo-29176: curses: use tmpfile() for getwin/putwin by vstinner · Pull Request #237 · python/cpython (original) (raw)

Use C function tmpfile() for curses.getwin() and curses.putwin(),
instead of mkstemp() using an hardcoded /tmp path. The tmpfile()
chooses the directory for the temporary file and so is more portable
(especially, it works on Android).

Replace also IOError with OSError: since the PEP 3151, IOError is an
alias to OSError.

http://bugs.python.org/issue29176