Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Drop re.NOFLAG while we're in the area (also 3.11+)
  • Loading branch information
barneygale committed Dec 19, 2023
commit 55a75cb9d734feaa1c45cad887c969c8c5be8c15
2 changes: 1 addition & 1 deletion Lib/pathlib/_abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _compile_pattern(pat, sep, case_sensitive):
if re is None:
import re, glob

flags = re.NOFLAG if case_sensitive else re.IGNORECASE
flags = 0 if case_sensitive else re.IGNORECASE
regex = glob.translate(pat, recursive=True, include_hidden=True, seps=sep)
return re.compile(regex, flags=flags).match

Expand Down