mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
Merge.
This commit is contained in:
commit
cac17b4d78
2 changed files with 5 additions and 2 deletions
|
|
@ -262,8 +262,9 @@ dl_funcptr _PyImport_GetDynLoadWindows(const char *shortname,
|
|||
theLength));
|
||||
}
|
||||
if (message != NULL) {
|
||||
PyErr_SetImportError(message, PyUnicode_FromString(shortname),
|
||||
pathname);
|
||||
PyObject *shortname_obj = PyUnicode_FromString(shortname);
|
||||
PyErr_SetImportError(message, shortname_obj, pathname);
|
||||
Py_XDECREF(shortname_obj);
|
||||
Py_DECREF(message);
|
||||
}
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue