]> granicus.if.org Git - python/commit
asyncio: sync with Tulip
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 18 Dec 2014 22:47:27 +0000 (23:47 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 18 Dec 2014 22:47:27 +0000 (23:47 +0100)
commit1b9763d0a9c62c13dc2a06770032e5906b610c96
tree5908c0aae7f5fb134d71eafd16defad46ad88474
parentdc7765d12c8b3008935659d70970ac3cd563e566
asyncio: sync with Tulip

* Fix a race condition in BaseSubprocessTransport._try_finish().

  If the process exited before the _post_init() method was called, scheduling
  the call to _call_connection_lost() with call_soon() is wrong:
  connection_made() must be called before connection_lost().

  Reuse the BaseSubprocessTransport._call() method to schedule the call to
  _call_connection_lost() to ensure that connection_made() and
  connection_lost() are called in the correct order.

* Add repr(PipeHandle)

* Fix typo
Lib/asyncio/base_subprocess.py
Lib/asyncio/windows_events.py
Lib/asyncio/windows_utils.py