Skip to content

Commit

Permalink
Drop re.NOFLAG while we're in the area (also 3.11+)
Browse files Browse the repository at this point in the history
  • Loading branch information
barneygale committed Dec 19, 2023
1 parent 440d6e8 commit 55a75cb
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 55a75cb

Please sign in to comment.