uasyncio: Set EpollEventLoop in a new way after .core refactor.

pull/11/head
Paul Sokolovsky 2014-11-04 02:48:34 +02:00
rodzic 9bb4f6b3b1
commit e9c7fa43f4
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -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