From cb4d7822bfc9428a10a901f1528d9857ec9f6cb7 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Mon, 21 Aug 2023 15:29:08 -0500 Subject: [PATCH] support old names for push/pop methods in TaskQueue .. and update asyncio to a version that uses the old names but has other new asyncio improvements. --- extmod/moduasyncio.c | 5 +++++ frozen/Adafruit_CircuitPython_asyncio | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/extmod/moduasyncio.c b/extmod/moduasyncio.c index ea81fbc310..2ba8efb1fe 100644 --- a/extmod/moduasyncio.c +++ b/extmod/moduasyncio.c @@ -160,6 +160,11 @@ STATIC const mp_rom_map_elem_t task_queue_locals_dict_table[] = { { MP_ROM_QSTR(MP_QSTR_push), MP_ROM_PTR(&task_queue_push_obj) }, { MP_ROM_QSTR(MP_QSTR_pop), MP_ROM_PTR(&task_queue_pop_obj) }, { MP_ROM_QSTR(MP_QSTR_remove), MP_ROM_PTR(&task_queue_remove_obj) }, + + // CIRCUITPYTHON: remove these after the bundle need not support 8.x + { MP_ROM_QSTR(MP_QSTR_push_head), MP_ROM_PTR(&task_queue_push_obj) }, + { MP_ROM_QSTR(MP_QSTR_push_sorted), MP_ROM_PTR(&task_queue_push_obj) }, + { MP_ROM_QSTR(MP_QSTR_pop_head), MP_ROM_PTR(&task_queue_pop_obj) }, }; STATIC MP_DEFINE_CONST_DICT(task_queue_locals_dict, task_queue_locals_dict_table); diff --git a/frozen/Adafruit_CircuitPython_asyncio b/frozen/Adafruit_CircuitPython_asyncio index 510d4a3bb9..7c25d09be0 160000 --- a/frozen/Adafruit_CircuitPython_asyncio +++ b/frozen/Adafruit_CircuitPython_asyncio @@ -1 +1 @@ -Subproject commit 510d4a3bb9326a31105622fe1905301a4f543a2c +Subproject commit 7c25d09be04a2979bcfb43b801de57594112808d