ipython/ipython — pull request #6911 by minrk (2014-11-12 22:17:58+00:00)
Title: don't use text mode in mkstemp

causes double-encoding of newlines, preventing newline arg from having desired effect.

closes #6599