Skip to content

Commit ad2f0cb

Browse files
[3.15] PEP 810 - Update some error strings (GH-150126) (#150135)
1 parent 61444f6 commit ad2f0cb

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
@@ -4055,7 +4055,7 @@ _PyImport_LoadLazyImportTstate(PyThreadState *tstate, PyObject *lazy_import)
40554055

40564056
// Create a cause exception showing where the lazy import was declared.
40574057
PyObject *msg = PyUnicode_FromFormat(
4058-
"deferred import of '%U' raised an exception during resolution",
4058+
"lazy import of '%U' raised an exception during resolution",
40594059
import_name
40604060
);
40614061
Py_DECREF(import_name); // Done with import_name.

0 commit comments

Comments
 (0)