]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.15] PEP 810 - Update some error strings (GH-150126) (#150135)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 20 May 2026 15:17:28 +0000 (17:17 +0200)
committerGitHub <noreply@github.com>
Wed, 20 May 2026 15:17:28 +0000 (15:17 +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 ef6f5274a236654f260f302c525c4679908621d9..352941a836ef21aaaf9d5a326df7d5fb4c45d242 100644 (file)
@@ -4055,7 +4055,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.