Skip to content

Commit

Permalink
function may be unused
Browse files Browse the repository at this point in the history
  • Loading branch information
jepler committed May 21, 2024
1 parent 49cbbd1 commit 94db02f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions py/obj.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,13 @@ void mp_obj_print(mp_obj_t o_in, mp_print_kind_t kind) {
}

// CIRCUITPY-CHANGE
#if MICROPY_CPYTHON_EXCEPTION_CHAIN
static mp_obj_t mp_load_attr_or_none(mp_obj_t base, qstr attr) {
mp_obj_t dest[2];
mp_load_method_protected(base, attr, dest, true);
return dest[0] == MP_OBJ_NULL ? mp_const_none : dest[0];
}
#endif

// CIRCUITPY-CHANGE
static void mp_obj_print_inner_exception(const mp_print_t *print, mp_obj_t self_in, mp_int_t limit) {
Expand Down

0 comments on commit 94db02f

Please sign in to comment.