From e604c2e91288adbf839110453d93e6d6b261a150 Mon Sep 17 00:00:00 2001 From: Phil Schaf Date: Tue, 23 Apr 2024 16:29:06 +0200 Subject: [PATCH] Revert "only match case-insensitively if the fs is" This reverts commit 468aa796f40a26a5c205db6dc2f66c3a49914373. --- src/virtualenv/discovery/py_spec.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/virtualenv/discovery/py_spec.py b/src/virtualenv/discovery/py_spec.py index 4e301a842..5f173a2ed 100644 --- a/src/virtualenv/discovery/py_spec.py +++ b/src/virtualenv/discovery/py_spec.py @@ -5,8 +5,6 @@ import os import re -from virtualenv.info import fs_is_case_sensitive - PATTERN = re.compile(r"^(?P[a-zA-Z]+)?(?P[0-9.]+)?(?:-(?P32|64))?$") @@ -84,7 +82,7 @@ def generate_re(self, *, windows: bool) -> re.Pattern: # Try matching `direct` first, so the `direct` group is filled when possible. return re.compile( rf"(?P{impl})(?P{version}){suffix}$", - flags=re.IGNORECASE if fs_is_case_sensitive() else 0, + flags=re.IGNORECASE, ) @property