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

This commit is contained in:
Serhiy Storchaka 2021-10-12 10:20:04 +03:00 committed by GitHub
parent d943d19172
commit f79f3b41c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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