From 854db7e82126701f2bf7a3ca0d78e3e26096aa75 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Tue, 12 Oct 2021 10:10:59 -0700 Subject: [PATCH] Fix format string in _PyImport_LoadDynamicModuleWithSpec() (GH-28863) (cherry picked from commit f79f3b41c8c1360d4e0ae884a52d0a486974ca53) Co-authored-by: Serhiy Storchaka --- Python/importdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/importdl.c b/Python/importdl.c index 3d9cd1ac8673..6d2554741f98 100644 --- a/Python/importdl.c +++ b/Python/importdl.c @@ -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; } -- 2.47.3