conditionalize re object type name

This commit is contained in:
Dan Halbert 2019-02-21 15:11:54 -05:00
parent 10d3a20f8a
commit 01e5a82f1c
1 changed files with 4 additions and 0 deletions

View File

@ -405,7 +405,11 @@ STATIC MP_DEFINE_CONST_DICT(re_locals_dict, re_locals_dict_table);
STATIC const mp_obj_type_t re_type = { STATIC const mp_obj_type_t re_type = {
{ &mp_type_type }, { &mp_type_type },
#if CIRCUITPY
.name = MP_QSTR_re, .name = MP_QSTR_re,
#else
.name = MP_QSTR_ure,
#endif
.print = re_print, .print = re_print,
.locals_dict = (void*)&re_locals_dict, .locals_dict = (void*)&re_locals_dict,
}; };