Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 68726:23fe237afa81
Issue #3080: Use %R to format module name in error messages
%R format instead of %U
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Sun, 13 Mar 2011 22:38:06 -0400 |
| parents | 7c67aa3ab531 |
| children | 2ee0ab9d2e8a |
line wrap: on
line diff
--- a/Python/import.c Tue Mar 15 09:33:57 2011 +0100 +++ b/Python/import.c Sun Mar 13 22:38:06 2011 -0400 @@ -2620,7 +2620,7 @@ } 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 @@ 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();
