]> granicus.if.org Git - python/commit
#6077: on Windows, fix truncation of a tempfile.TemporaryFile opened in "wt+" mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Mon, 30 Nov 2009 00:08:56 +0000 (00:08 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Mon, 30 Nov 2009 00:08:56 +0000 (00:08 +0000)
commit7d0bddde5caca7abf41aa3d8763bc99ad8aa8798
treeb8e31f1bf7954b3ccc9680c1c9ac7610b56ca382
parentacafc2d3d114fbbdf65bd1d77a6bbf39b94971f6
#6077: on Windows, fix truncation of a tempfile.TemporaryFile opened in "wt+" mode:
files opened with os.open() stop on the first \x1a (Ctrl-Z) unless os.O_BINARY is used.

Will backport to 3.1
Lib/tempfile.py
Lib/test/test_tempfile.py
Misc/NEWS