diff options
author | Vincent Michel <vxgmichel@gmail.com> | 2018-11-08 13:21:47 +0100 |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2018-11-08 14:21:47 +0200 |
commit | fd512d76456b65c529a5bc58d8cfe73e4a10de7a (patch) | |
tree | 0a3f0c1943f446a886837ea1234021b4e1a9203c /Lib/asyncio/subprocess.py | |
parent | 5d95312fb8eb1684879b9fb8c5c928089326d0df (diff) | |
download | cpython-git-fd512d76456b65c529a5bc58d8cfe73e4a10de7a.tar.gz |
bpo-35065: Remove `StreamReaderProtocol._untrack_reader` (#10212)
The call to `_untrack_reader` is performed too soon, causing the protocol
to forget about the reader before `connection_lost` can run and feed the
EOF to the reader. See bpo-35065.
Diffstat (limited to 'Lib/asyncio/subprocess.py')
-rw-r--r-- | Lib/asyncio/subprocess.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Lib/asyncio/subprocess.py b/Lib/asyncio/subprocess.py index c86de3d087..90fc00de83 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 |