Skip to content

Commit

Permalink
Use PurePosixPath when matching paths in .match
Browse files Browse the repository at this point in the history
Closes #92
  • Loading branch information
jaraco committed Jul 14, 2023
1 parent 906d379 commit c386e99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions newsfragments/92.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
In ``Path.match``, Windows path separators are no longer honored. The fact that they were was incidental and never supported.
2 changes: 1 addition & 1 deletion zipp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit c386e99

Please sign in to comment.