From e36ff98c80aa93a2f9fdd05800aaa6e75ead2b72 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 10 May 2016 23:23:50 +0100 Subject: [PATCH] py/parse: Add uerrno to list of modules to look for constants in. --- py/parse.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/py/parse.c b/py/parse.c index 3daa5ff83e..0b60569d0f 100644 --- a/py/parse.c +++ b/py/parse.c @@ -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