PEP 810 - Update some error strings (#150126)

This commit is contained in:
Tim Stumbaugh 2026-05-19 18:47:44 -06:00 committed by GitHub
parent 1f3c2679f1
commit de9c32fc34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -135,7 +135,7 @@ PyDoc_STRVAR(lazy_import_doc,
"lazy_import(builtins, name, fromlist=None, /)\n"
"--\n"
"\n"
"Represents a deferred import that will be resolved on first use.\n"
"Represents a lazy import that will be resolved on first use.\n"
"\n"
"Instances of this object accessed from the global scope will be\n"
"automatically imported based upon their name and then replaced with\n"

View file

@ -4049,7 +4049,7 @@ _PyImport_LoadLazyImportTstate(PyThreadState *tstate, PyObject *lazy_import)
// Create a cause exception showing where the lazy import was declared.
PyObject *msg = PyUnicode_FromFormat(
"deferred import of '%U' raised an exception during resolution",
"lazy import of '%U' raised an exception during resolution",
import_name
);
Py_DECREF(import_name); // Done with import_name.