uasyncio: Schedule simple I/O completion callbacks directly in event loop.

Simple == without args. This is expected action for them, and saves creation
of lambda just for that. Actually, probably all callbacks should be handled
this way.
pull/65/merge
Paul Sokolovsky 2015-12-11 22:53:29 +02:00
rodzic 7cd53c8bf8
commit b4b19f1dce
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -58,7 +58,7 @@ class EpollEventLoop(EventLoop):
if isinstance(cb, tuple):
cb[0](*cb[1])
else:
cb()
self.call_soon(cb)
class StreamReader: