Skip to content

Commit 01e5a82

Browse files
committed
conditionalize re object type name
1 parent 10d3a20 commit 01e5a82

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

extmod/modure.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,11 @@ STATIC MP_DEFINE_CONST_DICT(re_locals_dict, re_locals_dict_table);
405405

406406
STATIC const mp_obj_type_t re_type = {
407407
{ &mp_type_type },
408+
#if CIRCUITPY
408409
.name = MP_QSTR_re,
410+
#else
411+
.name = MP_QSTR_ure,
412+
#endif
409413
.print = re_print,
410414
.locals_dict = (void*)&re_locals_dict,
411415
};

0 commit comments

Comments
 (0)