mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Fix #14600. Correct reference handling and naming of ImportError convenience function
This commit is contained in:
parent
fba807ac44
commit
09b86d1196
5 changed files with 37 additions and 59 deletions
|
@ -254,9 +254,9 @@ dl_funcptr _PyImport_GetDynLoadWindows(const char *shortname,
|
|||
theLength));
|
||||
}
|
||||
if (message != NULL) {
|
||||
PyErr_SetFromImportErrorWithNameAndPath(message,
|
||||
PyUnicode_FromString(shortname),
|
||||
pathname);
|
||||
PyErr_SetImportError(message, PyUnicode_FromString(shortname),
|
||||
pathname);
|
||||
Py_DECREF(message);
|
||||
}
|
||||
return NULL;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue