Skip to content

Commit 4fc72c6

Browse files
committed
uasyncio: Remove "epoll" references from previous Linux-only implementation.
1 parent aa9bbe8 commit 4fc72c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

uasyncio/uasyncio/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from uasyncio.core import *
55

66

7-
class EpollEventLoop(EventLoop):
7+
class PollEventLoop(EventLoop):
88

99
def __init__(self, len=42):
1010
EventLoop.__init__(self, len)
@@ -53,13 +53,13 @@ def remove_writer(self, sock):
5353

5454
def wait(self, delay):
5555
if DEBUG and __debug__:
56-
log.debug("epoll.wait(%d)", delay)
56+
log.debug("poll.wait(%d)", delay)
5757
# We need one-shot behavior (second arg of 1 to .poll())
5858
if delay == -1:
5959
res = self.poller.poll(-1, 1)
6060
else:
6161
res = self.poller.poll(delay, 1)
62-
#log.debug("epoll result: %s", res)
62+
#log.debug("poll result: %s", res)
6363
# Remove "if res" workaround after
6464
# https://github.com/micropython/micropython/issues/2716 fixed.
6565
if res:
@@ -220,4 +220,4 @@ def start_server(client_coro, host, port, backlog=10):
220220

221221

222222
import uasyncio.core
223-
uasyncio.core._event_loop_class = EpollEventLoop
223+
uasyncio.core._event_loop_class = PollEventLoop

0 commit comments

Comments
 (0)