Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove assumption of case sensitivity #11708

Merged
merged 2 commits into from
Dec 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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