Fix format string in _PyImport_LoadDynamicModuleWithSpec() (GH-28863)

(cherry picked from commit f79f3b41c8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
Miss Islington (bot) 2021-10-12 10:10:59 -07:00 committed by GitHub
parent 035ad8cf98
commit 854db7e821
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -207,7 +207,7 @@ _PyImport_LoadDynamicModuleWithSpec(PyObject *spec, FILE *fp)
/* don't allow legacy init for non-ASCII module names */
PyErr_Format(
PyExc_SystemError,
"initialization of * did not return PyModuleDef",
"initialization of %s did not return PyModuleDef",
name_buf);
goto error;
}