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.
This commit is contained in:
Jeff Epler 2023-08-21 15:29:08 -05:00
parent 0cab3359df
commit cb4d7822bf
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE
2 changed files with 6 additions and 1 deletions

View File

@ -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);

@ -1 +1 @@
Subproject commit 510d4a3bb9326a31105622fe1905301a4f543a2c
Subproject commit 7c25d09be04a2979bcfb43b801de57594112808d