pathlib ABCs: remove caching of path parser case sensitivity (#130194)
Remove the caching `_is_case_sensitive()` function. The cache used to speed up `PurePath.[full_]match()` and `Path.[r]glob()`, but that's no longer the case - these methods use `self.parser is posixpath` to determine case sensitivity. This makes the `pathlib._abc` module a little easier to backport to Python 3.8, where `functools.cache()` is unavailable.
B
Barney Gale committed
655fc8a0fce3396fc1af3f7bc8f5c94ca8ec377d
Parent: e7f00cd
Committed by GitHub <noreply@github.com>
on 2/16/2025, 5:08:55 PM