Skip to content

Commit 4d2ff58

Browse files
authored
Remove assumption of case sensitivity (#11708)
Originally added in #10093 Fixes #11690, fixes #10661, fixes #10822 Co-authored-by: hauntsaninja <>
1 parent b640914 commit 4d2ff58

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

mypy/fscache.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030

3131
import os
3232
import stat
33-
import sys
3433
from typing import Dict, List, Set
3534
from mypy.util import hash_digest
3635
from mypy_extensions import mypyc_attr
@@ -202,9 +201,6 @@ def isfile_case(self, path: str, prefix: str) -> bool:
202201
203202
The caller must ensure that prefix is a valid file system prefix of path.
204203
"""
205-
if sys.platform == "linux":
206-
# Assume that the file system on Linux is case sensitive
207-
return self.isfile(path)
208204
if not self.isfile(path):
209205
# Fast path
210206
return False

0 commit comments

Comments
 (0)