From 9b69a21f4dd3d52b43bf0a06ba660d97414079b1 Mon Sep 17 00:00:00 2001 From: Danny Stoll <64173476+DannyStoll1@users.noreply.github.com> Date: Mon, 17 Nov 2025 16:28:15 -0600 Subject: [PATCH] Fix comment to reflect isfile behavior with symlinks Previous comment was confusing, referencing isdir instead of isfile. --- Lib/genericpath.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/genericpath.py b/Lib/genericpath.py index 7588fe5e8020f9..28985565781ef0 100644 --- a/Lib/genericpath.py +++ b/Lib/genericpath.py @@ -32,7 +32,7 @@ def lexists(path): return False return True -# This follows symbolic links, so both islink() and isdir() can be true +# This follows symbolic links, so both islink() and isfile() can be true # for the same path on systems that support symlinks def isfile(path): """Test whether a path is a regular file"""