Amaury Forgeot d'Arc <amaur...@gmail.com> added the comment: File descriptors wrapped by the new IO module should be opened in binary mode.
The attached patch changes TemporaryFile and NamedTemporaryFile to always call os.open() in binary mode; the mode is really used by the io.open() function. mkstemp() returns a raw file descriptor and was not changed. ---------- keywords: +needs review, patch nosy: +amaury.forgeotdarc Added file: http://bugs.python.org/file14092/tempfile.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6077> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com