1 parent 1f3c267 commit de9c32fCopy full SHA for de9c32f
2 files changed
Objects/lazyimportobject.c
@@ -135,7 +135,7 @@ PyDoc_STRVAR(lazy_import_doc,
135
"lazy_import(builtins, name, fromlist=None, /)\n"
136
"--\n"
137
"\n"
138
-"Represents a deferred import that will be resolved on first use.\n"
+"Represents a lazy import that will be resolved on first use.\n"
139
140
"Instances of this object accessed from the global scope will be\n"
141
"automatically imported based upon their name and then replaced with\n"
Python/import.c
@@ -4049,7 +4049,7 @@ _PyImport_LoadLazyImportTstate(PyThreadState *tstate, PyObject *lazy_import)
4049
4050
// Create a cause exception showing where the lazy import was declared.
4051
PyObject *msg = PyUnicode_FromFormat(
4052
- "deferred import of '%U' raised an exception during resolution",
+ "lazy import of '%U' raised an exception during resolution",
4053
import_name
4054
);
4055
Py_DECREF(import_name); // Done with import_name.
0 commit comments