summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/selector_events.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-07-07 15:26:54 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-07-07 15:26:54 (GMT)
commit1a870c913238e6e2178283b1d69e9be9203473f2 (patch)
treea433b73f12bc92783ecf57c0ad77f4a17126c712 /Lib/asyncio/selector_events.py
parent11116da935760bb5ff02a450708f56d3b36b7556 (diff)
downloadcpython-1a870c913238e6e2178283b1d69e9be9203473f2.zip
cpython-1a870c913238e6e2178283b1d69e9be9203473f2.tar.gz
cpython-1a870c913238e6e2178283b1d69e9be9203473f2.tar.bz2
asyncio: sync with Tulip
- Tulip issue #181: Faster create_connection(). Call directly waiter.set_result() in the constructor of _ProactorBasePipeTransport and _SelectorSocketTransport, instead of using of delaying the call with call_soon(). - Cleanup iscoroutine()
Diffstat (limited to 'Lib/asyncio/selector_events.py')
-rw-r--r--Lib/asyncio/selector_events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/selector_events.py b/Lib/asyncio/selector_events.py
index 2a17034..628efb7 100644
--- a/Lib/asyncio/selector_events.py
+++ b/Lib/asyncio/selector_events.py
@@ -481,7 +481,7 @@ class _SelectorSocketTransport(_SelectorTransport):
self._loop.add_reader(self._sock_fd, self._read_ready)
self._loop.call_soon(self._protocol.connection_made, self)
if waiter is not None:
- self._loop.call_soon(waiter._set_result_unless_cancelled, None)
+ waiter.set_result(None)
def pause_reading(self):
if self._closing: