Skip to content

Commit

Permalink
Strip the trailing slash from directory entries. Fixes #7.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jul 7, 2019
1 parent 7e4e70e commit 3378887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zipp.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def _add_implied_dirs(names):

@property
def parent(self):
parent_at = posixpath.dirname(self.at)
parent_at = posixpath.dirname(self.at.rstrip('/'))
if parent_at:
parent_at += '/'
return self._next(parent_at)
Expand Down

0 comments on commit 3378887

Please sign in to comment.