]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Patch 1341 by Amaury Forgeot d'Arc.
authorGuido van Rossum <guido@python.org>
Mon, 29 Oct 2007 17:39:59 +0000 (17:39 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 29 Oct 2007 17:39:59 +0000 (17:39 +0000)
commit6203d8fa11eeabac83e908687cc03c1c001a3f8a
tree55a7b3f83e08d97ec57bb1ed1b593991dc476ec8
parent3db4686b61a04e2017ac840dadeaf26ddf3f4730
Patch 1341 by Amaury Forgeot d'Arc.
This patch corrects test_fileinput on Windows: when redirecting stdout,
os.open should be given O_BINARY, because the file descriptor is then
wrapped in a text-mode file; os.fdopen(fd, "w").
Lib/fileinput.py