This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients George Prekas, eryksun, paul.moore, steve.dower, tim.golden, zach.ware
Date 2015-10-28.00:15:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1445991329.1.0.497567530853.issue25492@psf.upfronthosting.co.za>
In-reply-to
Content
I forgot to first check whether p2cread is None:

    ERROR_INVALID_HANDLE = 0x0006
    
    if stdin is None:
        p2cread = _winapi.GetStdHandle(_winapi.STD_INPUT_HANDLE)
        if p2cread is not None:
            try:
                os.get_handle_inheritable(p2cread)
            except OSError as e:
                if e.winerror != ERROR_INVALID_HANDLE:
                    raise
                p2cread = None
        if p2cread is None:
            p2cread, _ = _winapi.CreatePipe(None, 0)
            p2cread = Handle(p2cread)
            _winapi.CloseHandle(_)
History
Date User Action Args
2015-10-28 00:15:29eryksunsetrecipients: + eryksun, paul.moore, tim.golden, zach.ware, steve.dower, George Prekas
2015-10-28 00:15:29eryksunsetmessageid: <1445991329.1.0.497567530853.issue25492@psf.upfronthosting.co.za>
2015-10-28 00:15:29eryksunlinkissue25492 messages
2015-10-28 00:15:28eryksuncreate