]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-107913: Fix possible losses of OSError error codes (GH-107930)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 26 Aug 2023 21:35:06 +0000 (00:35 +0300)
committerGitHub <noreply@github.com>
Sat, 26 Aug 2023 21:35:06 +0000 (00:35 +0300)
commit2b15536fa94d07e9e286826c23507402313ec7f4
treebed59616b5e2b833e15cc6b10f0dccfca8faa9fb
parente407cea1938b80b1d469f148a4ea65587820e3eb
gh-107913: Fix possible losses of OSError error codes (GH-107930)

Functions like PyErr_SetFromErrno() and SetFromWindowsErr() should be
called immediately after using the C API which sets errno or the Windows
error code.
17 files changed:
Misc/NEWS.d/next/Library/2023-08-14-11-18-13.gh-issue-107913.4ooY6i.rst [new file with mode: 0644]
Modules/_cursesmodule.c
Modules/_io/fileio.c
Modules/_io/winconsoleio.c
Modules/_localemodule.c
Modules/_multiprocessing/semaphore.c
Modules/_ssl.c
Modules/faulthandler.c
Modules/fcntlmodule.c
Modules/getpath.c
Modules/mmapmodule.c
Modules/overlapped.c
Modules/posixmodule.c
Modules/selectmodule.c
Modules/socketmodule.c
Objects/unicodeobject.c
Python/fileutils.c