Skip to content

Commit 07f1573

Browse files
committed
PEP 810 - Update some language
As I was reading #150052, I remembered a comment we got in the initial pass about using the language "deferred" instead of "lazy" in this error. So, fix it up. I looked around for other similar language and found just one more
1 parent d095ceb commit 07f1573

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Objects/lazyimportobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ PyDoc_STRVAR(lazy_import_doc,
135135
"lazy_import(builtins, name, fromlist=None, /)\n"
136136
"--\n"
137137
"\n"
138-
"Represents a deferred import that will be resolved on first use.\n"
138+
"Represents a lazy import that will be resolved on first use.\n"
139139
"\n"
140140
"Instances of this object accessed from the global scope will be\n"
141141
"automatically imported based upon their name and then replaced with\n"

Python/import.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4049,7 +4049,7 @@ _PyImport_LoadLazyImportTstate(PyThreadState *tstate, PyObject *lazy_import)
40494049

40504050
// Create a cause exception showing where the lazy import was declared.
40514051
PyObject *msg = PyUnicode_FromFormat(
4052-
"deferred import of '%U' raised an exception during resolution",
4052+
"lazy import of '%U' raised an exception during resolution",
40534053
import_name
40544054
);
40554055
Py_DECREF(import_name); // Done with import_name.

0 commit comments

Comments
 (0)