[Python-checkins] Fix format string in _PyImport_LoadDynamicModuleWithSpec() (GH-28863)

serhiy-storchaka webhook-mailer at python.org
Tue Oct 12 03:20:09 EDT 2021


https://github.com/python/cpython/commit/f79f3b41c8c1360d4e0ae884a52d0a486974ca53
commit: f79f3b41c8c1360d4e0ae884a52d0a486974ca53
branch: main
author: Serhiy Storchaka <storchaka at gmail.com>
committer: serhiy-storchaka <storchaka at gmail.com>
date: 2021-10-12T10:20:04+03:00
summary:

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

files:
M Python/importdl.c

diff --git a/Python/importdl.c b/Python/importdl.c
index 3d9cd1ac8673c..6d2554741f982 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;
     }



More information about the Python-checkins mailing list