aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/importlib/resources/simple.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/importlib/resources/simple.py')
-rw-r--r--Lib/importlib/resources/simple.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/resources/simple.py b/Lib/importlib/resources/simple.py
index 7770c922c84..96f117fec62 100644
--- a/Lib/importlib/resources/simple.py
+++ b/Lib/importlib/resources/simple.py
@@ -88,7 +88,7 @@ class ResourceHandle(Traversable):
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):