aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/asyncio
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/asyncio')
-rw-r--r--Lib/asyncio/streams.py6
-rw-r--r--Lib/asyncio/subprocess.py5
2 files changed, 0 insertions, 11 deletions
diff --git a/Lib/asyncio/streams.py b/Lib/asyncio/streams.py
index 0afc66a473d..33fc303a6ff 100644
--- a/Lib/asyncio/streams.py
+++ b/Lib/asyncio/streams.py
@@ -227,9 +227,6 @@ class StreamReaderProtocol(FlowControlMixin, protocols.Protocol):
self._reject_connection = True
self._stream_reader_wr = None
- def _untrack_reader(self):
- self._stream_reader_wr = None
-
@property
def _stream_reader(self):
if self._stream_reader_wr is None:
@@ -345,9 +342,6 @@ class StreamWriter:
return self._transport.can_write_eof()
def close(self):
- # a reader can be garbage collected
- # after connection closing
- self._protocol._untrack_reader()
self._transport.close()
def is_closing(self):
diff --git a/Lib/asyncio/subprocess.py b/Lib/asyncio/subprocess.py
index c86de3d0870..90fc00de833 100644
--- a/Lib/asyncio/subprocess.py
+++ b/Lib/asyncio/subprocess.py
@@ -36,11 +36,6 @@ class SubprocessStreamProtocol(streams.FlowControlMixin,
info.append(f'stderr={self.stderr!r}')
return '<{}>'.format(' '.join(info))
- def _untrack_reader(self):
- # StreamWriter.close() expects the protocol
- # to have this method defined.
- pass
-
def connection_made(self, transport):
self._transport = transport