Skip to content

Commit

Permalink
Revert "Unconditionally prefer the Python coded versions of TaskQueue…
Browse files Browse the repository at this point in the history
…, Task"

This reverts commit 95cd442.
  • Loading branch information
jepler committed Oct 15, 2022
1 parent c15f5ef commit f22e949
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions asyncio/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@
from adafruit_ticks import ticks_ms as ticks, ticks_diff, ticks_add
import sys, select, traceback

# Import TaskQueue and Task, unconditionally preferring Python code
from .task import TaskQueue, Task
# Import TaskQueue and Task, preferring built-in C code over Python code
try:
from _asyncio import TaskQueue, Task
except:
from .task import TaskQueue, Task


################################################################################
Expand Down

0 comments on commit f22e949

Please sign in to comment.