aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/zipfile/_path/glob.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/zipfile/_path/glob.py')
-rw-r--r--Lib/zipfile/_path/glob.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/zipfile/_path/glob.py b/Lib/zipfile/_path/glob.py
index 4320f1c0bad..bd2839304b7 100644
--- a/Lib/zipfile/_path/glob.py
+++ b/Lib/zipfile/_path/glob.py
@@ -1,7 +1,6 @@
import os
import re
-
_default_seps = os.sep + str(os.altsep) * bool(os.altsep)
@@ -37,9 +36,9 @@ class Translator:
Apply '(?s:)' to create a non-matching group that
matches newlines (valid on Unix).
- Append '\Z' to imply fullmatch even when match is used.
+ Append '\z' to imply fullmatch even when match is used.
"""
- return rf'(?s:{pattern})\Z'
+ return rf'(?s:{pattern})\z'
def match_dirs(self, pattern):
"""