Skip to content

Commit f22e949

Browse files
committed
Revert "Unconditionally prefer the Python coded versions of TaskQueue, Task"
This reverts commit 95cd442.
1 parent c15f5ef commit f22e949

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

asyncio/core.py

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

21-
# Import TaskQueue and Task, unconditionally preferring Python code
22-
from .task import TaskQueue, Task
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
2326

2427

2528
################################################################################

0 commit comments

Comments
 (0)