From db8742e2b4e118e226054156c4e1a9ba878463f2 Mon Sep 17 00:00:00 2001 From: maurycy <5383+maurycy@users.noreply.github.com> Date: Thu, 7 Aug 2025 17:38:14 +0200 Subject: [PATCH] Remove redundant assignment in asyncio.streams.StreamReaderProtocol.connection_lost() (GH-137524) The _stream_writer attribute was removed in a355f60 (gh-114914). --- Lib/asyncio/streams.py | 1 - 1 file changed, 1 deletion(-) diff --git a/Lib/asyncio/streams.py b/Lib/asyncio/streams.py index 64aac4cc50..c8c01f3647 100644 --- a/Lib/asyncio/streams.py +++ b/Lib/asyncio/streams.py @@ -271,7 +271,6 @@ class StreamReaderProtocol(FlowControlMixin, protocols.Protocol): self._closed.set_exception(exc) super().connection_lost(exc) self._stream_reader_wr = None - self._stream_writer = None self._task = None self._transport = None