]> granicus.if.org Git - python/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:26 +0000 (01:45 -0700)
committerVictor Stinner <vstinner@redhat.com>
Mon, 17 Jun 2019 08:45:26 +0000 (10:45 +0200)
commit693945d45dfe50c843970cab3e3aa1fa3a3eddbe
tree777fbe3c67a84a9346041723e57fa1ebead64656
parentad505918a1829e6fa2a48a7665234d60a9377e98
bpo-37267: Do not check for FILE_TYPE_CHAR in os.dup() on Windows (GH-14051) (GH-14140)

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