]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-37267: Do not check for FILE_TYPE_CHAR in os.dup() on Windows (GH-14051) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 17 Jun 2019 08:45:04 +0000 (01:45 -0700)
committerVictor Stinner <vstinner@redhat.com>
Mon, 17 Jun 2019 08:45:04 +0000 (10:45 +0200)
commit71589491ad0da27f57789b97354f6094a91e2eb3
tree80e64e545573b4391deb32352eb88e86e35cc830
parent351b0e793e35510e8cbbcbb455a1b9544e808cdd
bpo-37267: Do not check for FILE_TYPE_CHAR in os.dup() on Windows (GH-14051) (GH-14141)

On Windows, os.dup() no longer creates an inheritable fd when handling a
character file.
(cherry picked from commit 28fca0c422b425a6be43be31add0a5328c16b0b8)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Lib/test/test_os.py
Misc/NEWS.d/next/Windows/2019-06-13-04-15-51.bpo-37267.Ygo5ef.rst [new file with mode: 0644]
Python/fileutils.c