Skip to content
Prev Previous commit
Next Next commit
Update Lib/pathlib.py
Co-authored-by: Barney Gale <barney.gale@gmail.com>
  • Loading branch information
thirumurugan-git and barneygale authored May 18, 2023
commit be06795a405fdec2bceac50a1aeefd51f8b39dd2
3 changes: 2 additions & 1 deletion Lib/pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ def _make_selector(pattern_parts, flavour, case_sensitive):


@functools.lru_cache(maxsize=256)
def _compile_pattern(pat, flags):
def _compile_pattern(pat, case_sensitive):
Comment thread
thirumurugan-git marked this conversation as resolved.
flags = re.NOFLAG if case_sensitive else re.IGNORECASE
return re.compile(fnmatch.translate(pat), flags).match


Expand Down