Skip to content

Commit

Permalink
Add missed stream argument
Browse files Browse the repository at this point in the history
  • Loading branch information
shadchin authored and jaraco committed Nov 7, 2023
1 parent babc287 commit 1496c81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion importlib_resources/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def is_dir(self):
def open(self, mode='r', *args, **kwargs):
stream = self.parent.reader.open_binary(self.name)
if 'b' not in mode:
stream = io.TextIOWrapper(*args, **kwargs)
stream = io.TextIOWrapper(stream, *args, **kwargs)
return stream

def joinpath(self, name):
Expand Down

0 comments on commit 1496c81

Please sign in to comment.