From 4d2ff58e502b52a908f41c18fbbe7cbb32997504 Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Mon, 13 Dec 2021 02:56:41 -0800 Subject: [PATCH] Remove assumption of case sensitivity (#11708) Originally added in #10093 Fixes #11690, fixes #10661, fixes #10822 Co-authored-by: hauntsaninja <> --- mypy/fscache.py | 4 ---- 1 file changed, 4 deletions(-) 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