diff --git a/mypy/fscache.py b/mypy/fscache.py index c77b941c551ca..ea71577b5f86d 100644 --- a/mypy/fscache.py +++ b/mypy/fscache.py @@ -30,7 +30,6 @@ import os import stat -import sys from typing import Dict, List, Set from mypy.util import hash_digest from mypy_extensions import mypyc_attr @@ -202,9 +201,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