Use PySocket_Err() instead of PyErr_SetFromErrno().
The former does the right thing on Windows, the latter does not.
J
Jeremy Hylton committed
e2adc6c205db6087b3a8f00a245cfb06905b8ae5
Parent: ba69936
The former does the right thing on Windows, the latter does not.