Skip to content

Commit

Permalink
Fix format string in _PyImport_LoadDynamicModuleWithSpec() (GH-28863)
Browse files Browse the repository at this point in the history
(cherry picked from commit f79f3b4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
  • Loading branch information
miss-islington and serhiy-storchaka committed Oct 12, 2021
1 parent 035ad8c commit 854db7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/importdl.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 854db7e

Please sign in to comment.