Author sbt
Recipients sbt
Date 2012-10-08.22:08:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1349734097.4.0.108959559992.issue16169@psf.upfronthosting.co.za>
In-reply-to
Content
ctypes.WinError() is defined as

    def WinError(code=None, descr=None):
        if code is None:
            code = GetLastError()
        if descr is None:
            descr = FormatError(code).strip()
        return WindowsError(code, descr)

Since WindowsError became an alias for OSError, this means that if e is the exception raised, e.errno == GetLastError() and e.winerror == None.

I think the last line should be

        return WindowsError(None, descr, None, code)
History
Date User Action Args
2012-10-08 22:08:17sbtsetrecipients: + sbt
2012-10-08 22:08:17sbtsetmessageid: <1349734097.4.0.108959559992.issue16169@psf.upfronthosting.co.za>
2012-10-08 22:08:17sbtlinkissue16169 messages
2012-10-08 22:08:17sbtcreate