Skip to content

Commit

Permalink
Merge pull request #103 from jaraco/bugfix/92-posix-path-match
Browse files Browse the repository at this point in the history
Use PurePosixPath when matching paths in .match
  • Loading branch information
jaraco authored Jul 14, 2023
2 parents c230378 + c386e99 commit e6bfe0d
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 @@ -352,7 +352,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 e6bfe0d

Please sign in to comment.