From e9c7fa43f40bcc057f557d4e96c27ab880eaea3e Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Tue, 4 Nov 2014 02:48:34 +0200 Subject: [PATCH] uasyncio: Set EpollEventLoop in a new way after .core refactor. --- uasyncio/uasyncio/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/uasyncio/uasyncio/__init__.py b/uasyncio/uasyncio/__init__.py index 9e7289e6..171210d6 100644 --- a/uasyncio/uasyncio/__init__.py +++ b/uasyncio/uasyncio/__init__.py @@ -52,10 +52,6 @@ class EpollEventLoop(EventLoop): cb[0](*cb[1]) -def get_event_loop(): - return EpollEventLoop() - - class StreamReader: def __init__(self, s): @@ -181,3 +177,7 @@ def start_server(client_coro, host, port): if __debug__: log.debug("start_server: After accept: %s", s2) yield client_coro(StreamReader(s2), StreamWriter(s2)) + + +import uasyncio.core +uasyncio.core._event_loop_class = EpollEventLoop