Skip to content

Commit

Permalink
Rely on Python syntax for pwd keyword argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Feb 17, 2020
1 parent d2ad6e0 commit 3d17ee5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zipp.py
Expand Up @@ -209,13 +209,12 @@ def __init__(self, root, at=""):
self.root = FastLookup.make(root)
self.at = at

def open(self, mode='r', *args, **kwargs):
def open(self, mode='r', *args, pwd=None, **kwargs):
"""
Open this entry as text or binary following the semantics
of ``pathlib.Path.open()`` by passing arguments through
to io.TextIOWrapper().
"""
pwd = kwargs.pop('pwd', None)
zip_mode = mode[0]
stream = self.root.open(self.at, zip_mode, pwd=pwd)
if 'b' in mode:
Expand Down

0 comments on commit 3d17ee5

Please sign in to comment.