Skip to content

Commit 1496c81

Browse files
shadchinjaraco
authored andcommitted
Add missed stream argument
1 parent babc287 commit 1496c81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

importlib_resources/simple.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def is_dir(self):
8888
def open(self, mode='r', *args, **kwargs):
8989
stream = self.parent.reader.open_binary(self.name)
9090
if 'b' not in mode:
91-
stream = io.TextIOWrapper(*args, **kwargs)
91+
stream = io.TextIOWrapper(stream, *args, **kwargs)
9292
return stream
9393

9494
def joinpath(self, name):

0 commit comments

Comments
 (0)