[3.11] gh-107913: Fix possible losses of OSError error codes (GH-107930) (GH-108524)
Functions like PyErr_SetFromErrno() and SetFromWindowsErr() should be called immediately after using the C API which sets errno or the Windows error code. (cherry picked from commit 2b15536fa94d07e9e286826c23507402313ec7f4)
S
Serhiy Storchaka committed
b9fc5363997c0cbb78a8d654f9bf6cac1fc056df
Parent: 8a275f7
Committed by GitHub <noreply@github.com>
on 8/27/2023, 12:18:58 PM