summaryrefslogtreecommitdiff
path: root/Python/import.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-03-13 22:38:06 -0400
committerVictor Stinner <victor.stinner@haypocalc.com>2011-03-13 22:38:06 -0400
commitc24c8108b656ede1b6857334328755669a25a61d (patch)
treeefe44400881d8fa90ede84191e81d8847cb869b0 /Python/import.c
parent974389d92c1e89c64359617fd3832dea58de5009 (diff)
downloadcpython-git-c24c8108b656ede1b6857334328755669a25a61d.tar.gz
Issue #3080: Use %R to format module name in error messages
%R format instead of %U
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/import.c b/Python/import.c
index 95faeee5d8..90ba4b5e22 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -2620,7 +2620,7 @@ PyImport_ImportModuleNoBlock(const char *name)
}
else {
PyErr_Format(PyExc_ImportError,
- "Failed to import %U because the import lock"
+ "Failed to import %R because the import lock"
"is held by another thread.",
nameobj);
result = NULL;
@@ -3285,7 +3285,7 @@ PyImport_ReloadModule(PyObject *m)
parent = PyDict_GetItem(modules, parentname);
if (parent == NULL) {
PyErr_Format(PyExc_ImportError,
- "reload(): parent %U not in sys.modules",
+ "reload(): parent %R not in sys.modules",
parentname);
Py_DECREF(parentname);
imp_modules_reloading_clear();