diff options
author | Alexander Shadchin <shadchin@yandex-team.com> | 2024-02-20 14:09:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-20 14:09:46 (GMT) |
commit | 1ff6c1416b0bb422f4847cd84fcb33662a2497ef (patch) | |
tree | c3727b0c8fb5a38135622e3a493f29d1c3e85826 /Lib/importlib | |
parent | d24bed5ba0c60bbcc1662ae51071067799862fe0 (diff) | |
download | cpython-1ff6c1416b0bb422f4847cd84fcb33662a2497ef.zip cpython-1ff6c1416b0bb422f4847cd84fcb33662a2497ef.tar.gz cpython-1ff6c1416b0bb422f4847cd84fcb33662a2497ef.tar.bz2 |
Add missed `stream` argument (#111775)
* Add missed `stream` argument
* Add news
Diffstat (limited to 'Lib/importlib')
-rw-r--r-- | Lib/importlib/resources/simple.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/resources/simple.py b/Lib/importlib/resources/simple.py index 7770c92..96f117f 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): |