]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
backport (partially) jeremy's 1.178
authorAnthony Baxter <anthonybaxter@gmail.com>
Thu, 1 Nov 2001 13:58:16 +0000 (13:58 +0000)
committerAnthony Baxter <anthonybaxter@gmail.com>
Thu, 1 Nov 2001 13:58:16 +0000 (13:58 +0000)
commit5d0fdbc690744dd48a9476d1b362b2bbcf773e88
treeb4305e7c1ad49e5b7400d4e40756750044fd9369
parent22a2ce8d40486b651b967c09baf1aa312bce11be
backport (partially) jeremy's 1.178
  Use PySocket_Err() instead of PyErr_SetFromErrno().
  The former does the right thing on Windows, the latter does not.

The 'partial' is because the code's changed quite a lot and it's not clear
that the two that are still there of the form
                return PyErr_SetFromErrno(SSLErrorObject);
can be replaced with PySocket_Err() - it looks like they need the new
PySSL_SetError, which is a tad large to be comfortable with just checking
in without reading it further.
Modules/socketmodule.c