From 08c60f513bee512477af754106ebec9672c71b75 Mon Sep 17 00:00:00 2001 From: Nick Drozd Date: Tue, 2 Jan 2024 15:02:34 -0600 Subject: [PATCH] Check path string properly (#9367) A minor whoopsie, 158367bf9 forgot to update this line. I'm not sure how this gets tested in CI. --- python/ruff/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ruff/__main__.py b/python/ruff/__main__.py index be79913a2b..fa8c656f32 100644 --- a/python/ruff/__main__.py +++ b/python/ruff/__main__.py @@ -22,7 +22,7 @@ def find_ruff_bin() -> str: user_scheme = "posix_user" path = os.path.join(sysconfig.get_path("scripts", scheme=user_scheme), ruff_exe) - if path.is_file(): + if os.path.isfile(path): return path raise FileNotFoundError(path)