Revert "GH-116380: Speed up glob.[i]glob() by making fewer system calls. (#116392)" (#130743)

This broke tests on the 'aarch64 Fedora Stable Clang Installed 3.x' and
'AMD64 Fedora Stable Clang Installed 3.x' build bots.

This reverts commit da4899b94a.
This commit is contained in:
Barney Gale 2025-03-01 20:04:01 +00:00 committed by GitHub
parent 5221d9ce0e
commit 5326c27fc6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 228 additions and 239 deletions

View file

@ -196,8 +196,7 @@ def full_match(self, pattern, *, case_sensitive=None):
pattern = self.with_segments(pattern)
if case_sensitive is None:
case_sensitive = self.parser.normcase('Aa') == 'Aa'
globber = _PathGlobber(pattern.parser.sep, case_sensitive,
recursive=True, include_hidden=True)
globber = _PathGlobber(pattern.parser.sep, case_sensitive, recursive=True)
match = globber.compile(str(pattern))
return match(str(self)) is not None