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

Mariatta webhook-mailer at python.org
Tue Oct 12 13:11:03 EDT 2021


https://github.com/python/cpython/commit/854db7e82126701f2bf7a3ca0d78e3e26096aa75
commit: 854db7e82126701f2bf7a3ca0d78e3e26096aa75
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Mariatta <Mariatta at users.noreply.github.com>
date: 2021-10-12T10:10:59-07:00
summary:

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

(cherry picked from commit f79f3b41c8c1360d4e0ae884a52d0a486974ca53)

Co-authored-by: Serhiy Storchaka <storchaka at gmail.com>

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