Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
remove redundant code
  • Loading branch information
kumaraditya303 committed Dec 12, 2022
commit e9c8fced1b404a96ceb581875079f4b85b97814e
9 changes: 0 additions & 9 deletions Lib/asyncio/base_subprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,15 +215,6 @@ def _process_exited(self, returncode):
# object. On Python 3.6, it is required to avoid a ResourceWarning.
self._proc.returncode = returncode
self._call(self._protocol.process_exited)
# See https://github.com/python/cpython/issues/100133
# The pipes should not be closed otherwise some data may be lost.
# If the pipe is closed here then _UnixReadPipeTransport will remove the
# reader prematurely and the data will be lost, instead of doing that
# the pipe will be closed when the process is finished via _pipe_connection_lost
# followed by _try_finish.
# for p in self._pipes.values():
# if p is not None:
# p.pipe.close()

self._try_finish()

Expand Down