Skip to content

Commit

Permalink
Add doctests for _implied_dirs illustrating the behavior.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Feb 24, 2023
1 parent f3a56db commit bf85e75
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions zipp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ class CompleteDirs(InitializedState, zipfile.ZipFile):
"""
A ZipFile subclass that ensures that implied directories
are always included in the namelist.
>>> list(CompleteDirs._implied_dirs(['foo/bar.txt', 'foo/bar/baz.txt']))
['foo/', 'foo/bar/']
>>> list(CompleteDirs._implied_dirs(['foo/bar.txt', 'foo/bar/baz.txt', 'foo/bar/']))
['foo/']
"""

@staticmethod
Expand Down

0 comments on commit bf85e75

Please sign in to comment.