ipython/ipython — pull request #6195 by takluyver (2014-07-23 22:36:14+00:00)
Title: Close handle on new temporary files before returning filename

On Windows, a file can only have one open writable handle at a time, so we need to close the one created by mkstemp before anything else can use that file.

Closes gh-5946