Skip to content

Commit d860de4

Browse files
serhiy-storchakajaraco
authored andcommitted
gh-133306: Use \z instead of \Z in regular expressions in the stdlib (GH-133337)
1 parent 30fe7ce commit d860de4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zipp/glob.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ def extend(self, pattern):
3636
Apply '(?s:)' to create a non-matching group that
3737
matches newlines (valid on Unix).
3838
39-
Append '\Z' to imply fullmatch even when match is used.
39+
Append '\z' to imply fullmatch even when match is used.
4040
"""
41-
return rf'(?s:{pattern})\Z'
41+
return rf'(?s:{pattern})\z'
4242

4343
def match_dirs(self, pattern):
4444
"""

0 commit comments

Comments
 (0)