]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix format string in _PyImport_LoadDynamicModuleWithSpec() (GH-28863)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 12 Oct 2021 17:10:41 +0000 (10:10 -0700)
committerGitHub <noreply@github.com>
Tue, 12 Oct 2021 17:10:41 +0000 (10:10 -0700)
(cherry picked from commit f79f3b41c8c1360d4e0ae884a52d0a486974ca53)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Python/importdl.c

index 7f600d4a7aaf8a72274f23e9fd03733b50766899..134f6680c4484af032be9f3a19dea19cd63d55b0 100644 (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;
     }