From e7043df4b842a81c17c33ab54161b2c67f43bbc0 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Tue, 12 Oct 2021 10:20:04 +0300 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 3d9cd1ac8673cc..6d2554741f9822 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; }