]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove redundant assignment in asyncio.streams.StreamReaderProtocol.connection_lost...
authormaurycy <5383+maurycy@users.noreply.github.com>
Thu, 7 Aug 2025 15:38:14 +0000 (17:38 +0200)
committerGitHub <noreply@github.com>
Thu, 7 Aug 2025 15:38:14 +0000 (18:38 +0300)
The _stream_writer attribute was removed in a355f60 (gh-114914).

Lib/asyncio/streams.py

index 64aac4cc50d15a5e076d5ad43ea8a9017f12a72e..c8c01f364741835acb4935736d58960b43c6d700 100644 (file)
@@ -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