Skip to content

Commit

Permalink
Correct issue in Path.__str__
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Nov 16, 2018
1 parent f97c5f9 commit 7903800
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v0.2.1
======

Fix issue with ``__str__``.

v0.2.0
======

Expand Down
4 changes: 3 additions & 1 deletion zipp.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
True
>>> (b / 'missing.txt').exists()
False
>>> str(c)
'abcde.zip/b/c.txt'
"""

from __future__ import division
Expand Down Expand Up @@ -74,7 +76,7 @@ def iterdir(self):
return filter(self._is_child, subs)

def __str__(self):
return posixpath.join(self.root, self.at)
return posixpath.join(self.root.filename, self.at)

def __repr__(self):
return self.__repr.format(self=self)
Expand Down

0 comments on commit 7903800

Please sign in to comment.