asyncio: sync with Tulip, add a new asyncio.coroutines module

This commit is contained in:
Victor Stinner 2014-06-29 00:46:45 +02:00
parent 61f32cb5b8
commit f951d28ac8
12 changed files with 221 additions and 199 deletions

View file

@ -2,8 +2,8 @@ import collections
import subprocess
from . import protocols
from . import tasks
from . import transports
from .coroutines import coroutine
class BaseSubprocessTransport(transports.SubprocessTransport):
@ -65,7 +65,7 @@ class BaseSubprocessTransport(transports.SubprocessTransport):
def kill(self):
self._proc.kill()
@tasks.coroutine
@coroutine
def _post_init(self):
proc = self._proc
loop = self._loop