From f22e949c0b6c08b45159886bcfbc3a85a0a53778 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Sat, 15 Oct 2022 10:48:31 -0500 Subject: [PATCH] Revert "Unconditionally prefer the Python coded versions of TaskQueue, Task" This reverts commit 95cd442393a4cffd28bcada3a1f6fae2fa5dad2d. --- asyncio/core.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/asyncio/core.py b/asyncio/core.py index 14166be..33168e3 100644 --- a/asyncio/core.py +++ b/asyncio/core.py @@ -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 ################################################################################