Skip to content

Commit

Permalink
Use PurePosixPath when constructing the _base
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jul 14, 2023
1 parent e6bfe0d commit 9d6e639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zipp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def open(self, mode='r', *args, pwd=None, **kwargs):
return io.TextIOWrapper(stream, encoding, *args, **kwargs)

def _base(self):
return pathlib.Path(self.at) if self.at else self.filename
return pathlib.PurePosixPath(self.at or self.root.filename)

@property
def name(self):
Expand Down

0 comments on commit 9d6e639

Please sign in to comment.