py/parse: Add uerrno to list of modules to look for constants in.

This commit is contained in:
Damien George 2016-05-10 23:23:50 +01:00
parent 596a3feb8f
commit e36ff98c80
1 changed files with 3 additions and 0 deletions

View File

@ -449,6 +449,9 @@ STATIC void push_result_token(parser_t *parser) {
#if MICROPY_COMP_MODULE_CONST
STATIC const mp_rom_map_elem_t mp_constants_table[] = {
#if MICROPY_PY_UERRNO
{ MP_ROM_QSTR(MP_QSTR_errno), MP_ROM_PTR(&mp_module_uerrno) },
#endif
#if MICROPY_PY_UCTYPES
{ MP_ROM_QSTR(MP_QSTR_uctypes), MP_ROM_PTR(&mp_module_uctypes) },
#endif