Skip to content

Commit 95cd442

Browse files
committed
Unconditionally prefer the Python coded versions of TaskQueue, Task
1 parent 3e8c50e commit 95cd442

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

asyncio/core.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,8 @@
1818
from adafruit_ticks import ticks_ms as ticks, ticks_diff, ticks_add
1919
import sys, select, traceback
2020

21-
# Import TaskQueue and Task, preferring built-in C code over Python code
22-
try:
23-
from _asyncio import TaskQueue, Task
24-
except:
25-
from .task import TaskQueue, Task
21+
# Import TaskQueue and Task, unconditionally preferring Python code
22+
from .task import TaskQueue, Task
2623

2724

2825
################################################################################

0 commit comments

Comments
 (0)