Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
bpo-36935: Remove usage of the deprecated PyErr_SetFromWindowsErrWith…
…UnicodeFilename()

In e895de3, the
deprecated function PyErr_SetFromWindowsErrWithUnicodeFilename() was
added in two functions in Modules/_winapi.c. This function was
deprecated in 3.3.
  • Loading branch information
ZackerySpytz committed May 16, 2019
commit 264ed9d7a1898e2bf74db0a9418a2e6fa29ec6b8
4 changes: 2 additions & 2 deletions Modules/_winapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ _winapi_CreateFileMapping_impl(PyObject *module, HANDLE file_handle,
Py_END_ALLOW_THREADS

if (handle == NULL) {
PyErr_SetFromWindowsErrWithUnicodeFilename(0, name);
PyErr_SetFromWindowsErr(0);
Comment thread
ZackerySpytz marked this conversation as resolved.
Outdated
handle = INVALID_HANDLE_VALUE;
}

Expand Down Expand Up @@ -1379,7 +1379,7 @@ _winapi_OpenFileMapping_impl(PyObject *module, DWORD desired_access,
Py_END_ALLOW_THREADS

if (handle == NULL) {
PyErr_SetFromWindowsErrWithUnicodeFilename(0, name);
PyErr_SetFromWindowsErr(0);
handle = INVALID_HANDLE_VALUE;
}

Expand Down