File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1917,7 +1917,9 @@ STATIC const mp_rom_map_elem_t str8_locals_dict_table[] = {
19171917 { MP_ROM_QSTR (MP_QSTR_count ), MP_ROM_PTR (& str_count_obj ) },
19181918 { MP_ROM_QSTR (MP_QSTR_partition ), MP_ROM_PTR (& str_partition_obj ) },
19191919 { MP_ROM_QSTR (MP_QSTR_rpartition ), MP_ROM_PTR (& str_rpartition_obj ) },
1920+ #if MICROPY_PY_BUILTINS_STR_CENTER
19201921 { MP_ROM_QSTR (MP_QSTR_center ), MP_ROM_PTR (& str_center_obj ) },
1922+ #endif
19211923 { MP_ROM_QSTR (MP_QSTR_lower ), MP_ROM_PTR (& str_lower_obj ) },
19221924 { MP_ROM_QSTR (MP_QSTR_upper ), MP_ROM_PTR (& str_upper_obj ) },
19231925 { MP_ROM_QSTR (MP_QSTR_isspace ), MP_ROM_PTR (& str_isspace_obj ) },
Original file line number Diff line number Diff line change @@ -238,7 +238,9 @@ STATIC const mp_rom_map_elem_t struni_locals_dict_table[] = {
238238 { MP_ROM_QSTR (MP_QSTR_count ), MP_ROM_PTR (& str_count_obj ) },
239239 { MP_ROM_QSTR (MP_QSTR_partition ), MP_ROM_PTR (& str_partition_obj ) },
240240 { MP_ROM_QSTR (MP_QSTR_rpartition ), MP_ROM_PTR (& str_rpartition_obj ) },
241+ #if MICROPY_PY_BUILTINS_STR_CENTER
241242 { MP_ROM_QSTR (MP_QSTR_center ), MP_ROM_PTR (& str_center_obj ) },
243+ #endif
242244 { MP_ROM_QSTR (MP_QSTR_lower ), MP_ROM_PTR (& str_lower_obj ) },
243245 { MP_ROM_QSTR (MP_QSTR_upper ), MP_ROM_PTR (& str_upper_obj ) },
244246 { MP_ROM_QSTR (MP_QSTR_isspace ), MP_ROM_PTR (& str_isspace_obj ) },
You can’t perform that action at this time.
0 commit comments