]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
PEP 810 - Update some error strings (#150126)
authorTim Stumbaugh <me@tjstum.com>
Wed, 20 May 2026 00:47:44 +0000 (18:47 -0600)
committerGitHub <noreply@github.com>
Wed, 20 May 2026 00:47:44 +0000 (00:47 +0000)
Objects/lazyimportobject.c
Python/import.c

index 451f335e033f16bfb49f53419b08ced05c684935..fa1eb25047d961719c9b525fd3082bca33072af3 100644 (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"
index 60a5ee6e770f598a4c5d7ae518f2ac0ef29fbf9e..469f17f0d452099705df90361644f50076e64161 100644 (file)
@@ -4049,7 +4049,7 @@ error:
 
         // 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.