]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
getpath: fix warning typo (#126978)
authorFilipe Laíns 🇵🇸 <lains@riseup.net>
Mon, 18 Nov 2024 23:50:01 +0000 (23:50 +0000)
committerGitHub <noreply@github.com>
Mon, 18 Nov 2024 23:50:01 +0000 (23:50 +0000)
Modules/getpath.py

index 1f1bfcb4f64dd45989af2f23bf4b6d901baf0f28..1c1eb6cbf3ee2223f78b6d08a0d776bea2a89533 100644 (file)
@@ -420,7 +420,7 @@ if real_executable:
         # Only warn if the file actually exists and was unresolvable
         # Otherwise users who specify a fake executable may get spurious warnings.
         if isfile(real_executable):
-            warn(f'Failed to find real location of {base_executable}')
+            warn(f'Failed to find real location of {real_executable}')
 
 if not executable_dir and os_name == 'darwin' and library:
     # QUIRK: macOS checks adjacent to its library early