https://github.com/python/cpython/commit/db8742e2b4e118e226054156c4e1a9ba878463f2
commit: db8742e2b4e118e226054156c4e1a9ba878463f2
branch: main
author: maurycy <5383+maur...@users.noreply.github.com>
committer: serhiy-storchaka <storch...@gmail.com>
date: 2025-08-07T18:38:14+03:00
summary:

Remove redundant assignment in 
asyncio.streams.StreamReaderProtocol.connection_lost() (GH-137524)

The _stream_writer attribute was removed in a355f60 (gh-114914).

files:
M Lib/asyncio/streams.py

diff --git a/Lib/asyncio/streams.py b/Lib/asyncio/streams.py
index 64aac4cc50d15a..c8c01f36474183 100644
--- a/Lib/asyncio/streams.py
+++ b/Lib/asyncio/streams.py
@@ -271,7 +271,6 @@ def connection_lost(self, exc):
                 self._closed.set_exception(exc)
         super().connection_lost(exc)
         self._stream_reader_wr = None
-        self._stream_writer = None
         self._task = None
         self._transport = None
 

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: arch...@mail-archive.com

Reply via email to