summaryrefslogtreecommitdiffstats
path: root/Python/importdl.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-10-12 17:10:59 (GMT)
committerGitHub <noreply@github.com>2021-10-12 17:10:59 (GMT)
commit854db7e82126701f2bf7a3ca0d78e3e26096aa75 (patch)
treee0abc22e4e079220c8e28ba71c02cd095a54b207 /Python/importdl.c
parent035ad8cf988b31a742ec006183a0ea673876d659 (diff)
downloadcpython-854db7e82126701f2bf7a3ca0d78e3e26096aa75.zip
cpython-854db7e82126701f2bf7a3ca0d78e3e26096aa75.tar.gz
cpython-854db7e82126701f2bf7a3ca0d78e3e26096aa75.tar.bz2
Fix format string in _PyImport_LoadDynamicModuleWithSpec() (GH-28863)
(cherry picked from commit f79f3b41c8c1360d4e0ae884a52d0a486974ca53) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Python/importdl.c')
-rw-r--r--Python/importdl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/importdl.c b/Python/importdl.c
index 3d9cd1a..6d25547 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;
}