Skip to content

Commit

Permalink
Remove assumption of case sensitivity (#11708)
Browse files Browse the repository at this point in the history
Originally added in #10093

Fixes #11690, fixes #10661, fixes #10822

Co-authored-by: hauntsaninja <>
  • Loading branch information
hauntsaninja authored Dec 13, 2021
1 parent b640914 commit 4d2ff58
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions mypy/fscache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4d2ff58

Please sign in to comment.