diff --git a/newsfragments/92.bugfix.rst b/newsfragments/92.bugfix.rst new file mode 100644 index 0000000..eb6dc67 --- /dev/null +++ b/newsfragments/92.bugfix.rst @@ -0,0 +1 @@ +In ``Path.match``, Windows path separators are no longer honored. The fact that they were was incidental and never supported. diff --git a/zipp/__init__.py b/zipp/__init__.py index cd68a2a..f679892 100644 --- a/zipp/__init__.py +++ b/zipp/__init__.py @@ -349,7 +349,7 @@ def iterdir(self): return filter(self._is_child, subs) def match(self, path_pattern): - return pathlib.Path(self.at).match(path_pattern) + return pathlib.PurePosixPath(self.at).match(path_pattern) def is_symlink(self): """