From: maurycy <5383+maurycy@users.noreply.github.com> Date: Thu, 7 Aug 2025 15:38:14 +0000 (+0200) Subject: Remove redundant assignment in asyncio.streams.StreamReaderProtocol.connection_lost... X-Git-Tag: v3.15.0a1~748 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=db8742e2b4e118e226054156c4e1a9ba878463f2;p=thirdparty%2FPython%2Fcpython.git Remove redundant assignment in asyncio.streams.StreamReaderProtocol.connection_lost() (GH-137524) The _stream_writer attribute was removed in a355f60 (gh-114914). --- diff --git a/Lib/asyncio/streams.py b/Lib/asyncio/streams.py index 64aac4cc50d1..c8c01f364741 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