Skip to content

Commit cb4d782

Browse files
committed
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.
1 parent 0cab335 commit cb4d782

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

extmod/moduasyncio.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,11 @@ STATIC const mp_rom_map_elem_t task_queue_locals_dict_table[] = {
160160
{ MP_ROM_QSTR(MP_QSTR_push), MP_ROM_PTR(&task_queue_push_obj) },
161161
{ MP_ROM_QSTR(MP_QSTR_pop), MP_ROM_PTR(&task_queue_pop_obj) },
162162
{ MP_ROM_QSTR(MP_QSTR_remove), MP_ROM_PTR(&task_queue_remove_obj) },
163+
164+
// CIRCUITPYTHON: remove these after the bundle need not support 8.x
165+
{ MP_ROM_QSTR(MP_QSTR_push_head), MP_ROM_PTR(&task_queue_push_obj) },
166+
{ MP_ROM_QSTR(MP_QSTR_push_sorted), MP_ROM_PTR(&task_queue_push_obj) },
167+
{ MP_ROM_QSTR(MP_QSTR_pop_head), MP_ROM_PTR(&task_queue_pop_obj) },
163168
};
164169
STATIC MP_DEFINE_CONST_DICT(task_queue_locals_dict, task_queue_locals_dict_table);
165170

0 commit comments

Comments
 (0)