Skip to content

Commit

Permalink
Remove assumption of case insensitivity
Browse files Browse the repository at this point in the history
Originally added in python#10093

Fixes python#11690, fixes python#10661, fixes python#10822
  • Loading branch information
hauntsaninja committed Dec 10, 2021
1 parent cee5d3e commit e537705
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions mypy/fscache.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,6 @@ def isfile_case(self, path: str, prefix: str) -> bool:
The caller must ensure that prefix is a valid file system prefix of path.
"""
if sys.platform == "linux":
# Assume that the file system on Linux is case sensitive
return self.isfile(path)
if not self.isfile(path):
# Fast path
return False
Expand Down

0 comments on commit e537705

Please sign in to comment.