mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
asyncio: Fix trailing whitespace/code style
This commit is contained in:
parent
481cb70a72
commit
2f15645785
2 changed files with 8 additions and 6 deletions
|
@ -89,7 +89,7 @@ class SubprocessStreamProtocol(streams.FlowControlMixin,
|
|||
reader.feed_eof()
|
||||
else:
|
||||
reader.set_exception(exc)
|
||||
|
||||
|
||||
if fd in self._pipe_fds:
|
||||
self._pipe_fds.remove(fd)
|
||||
self._maybe_close_transport()
|
||||
|
@ -97,7 +97,7 @@ class SubprocessStreamProtocol(streams.FlowControlMixin,
|
|||
def process_exited(self):
|
||||
self._process_exited = True
|
||||
self._maybe_close_transport()
|
||||
|
||||
|
||||
def _maybe_close_transport(self):
|
||||
if len(self._pipe_fds) == 0 and self._process_exited:
|
||||
self._transport.close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue