Commit a8086ff
feat: optimize
`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.static_file()
1 parent 0207a34 commit a8086ff
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2780 | 2780 | | |
2781 | 2781 | | |
2782 | 2782 | | |
2783 | | - | |
| 2783 | + | |
2784 | 2784 | | |
2785 | 2785 | | |
2786 | 2786 | | |
| |||
0 commit comments