Skip to content

Commit de9c32f

Browse files
authored
PEP 810 - Update some error strings (#150126)
1 parent 1f3c267 commit de9c32f

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)