diff options
author | Yury Selivanov <yury@magic.io> | 2016-09-15 13:49:08 -0400 |
---|---|---|
committer | Yury Selivanov <yury@magic.io> | 2016-09-15 13:49:08 -0400 |
commit | d61fd696da6883484623737243a94cdb3a8c935d (patch) | |
tree | 3890bf37c0dfd4a2ff7fc88da7792dbd80c36ff4 /Lib/asyncio/base_events.py | |
parent | 3dac0bcea3b4a36e4d9b6ce2c78f9e306d16610d (diff) | |
download | cpython-d61fd696da6883484623737243a94cdb3a8c935d.tar.gz |
Another asyncio sync.
Diffstat (limited to 'Lib/asyncio/base_events.py')
-rw-r--r-- | Lib/asyncio/base_events.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index 619fe3a778..bc3e012939 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -13,7 +13,6 @@ conscious design decision, leaving the door open for keyword arguments to modify the meaning of the API call itself. """ - import collections import concurrent.futures import heapq @@ -1128,7 +1127,7 @@ class BaseEventLoop(events.AbstractEventLoop): transport = yield from self._make_subprocess_transport( protocol, cmd, True, stdin, stdout, stderr, bufsize, **kwargs) if self._debug: - logger.info('%s: %r' % (debug_log, transport)) + logger.info('%s: %r', debug_log, transport) return transport, protocol @coroutine @@ -1158,7 +1157,7 @@ class BaseEventLoop(events.AbstractEventLoop): protocol, popen_args, False, stdin, stdout, stderr, bufsize, **kwargs) if self._debug: - logger.info('%s: %r' % (debug_log, transport)) + logger.info('%s: %r', debug_log, transport) return transport, protocol def get_exception_handler(self): @@ -1238,7 +1237,9 @@ class BaseEventLoop(events.AbstractEventLoop): - 'handle' (optional): Handle instance; - 'protocol' (optional): Protocol instance; - 'transport' (optional): Transport instance; - - 'socket' (optional): Socket instance. + - 'socket' (optional): Socket instance; + - 'asyncgen' (optional): Asynchronous generator that caused + the exception. New keys maybe introduced in the future. |