Skip to content

Conversation

@BoboTiG
Copy link
Contributor

@BoboTiG BoboTiG commented Sep 13, 2025

I can't think of a scenario where this statement is false: isfile(path) == True implicates exists(path) == True.

I think we can remove the first check then.

https://github.com/python/cpython/blob/805e3368d6d07e58430654d1365283924fdf4143/Lib/genericpath.py#L17 and https://github.com/python/cpython/blob/805e3368d6d07e58430654d1365283924fdf4143/Lib/genericpath.py#L37 are indeed doing the same kind of calls & failure handling.

@defnull defnull merged commit a8086ff into bottlepy:master Sep 13, 2025
5 checks passed
@BoboTiG BoboTiG deleted the patch-1 branch September 13, 2025 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants