Skip to content

Commit 94db02f

Browse files
committed
function may be unused
1 parent 49cbbd1 commit 94db02f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

py/obj.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,13 @@ void mp_obj_print(mp_obj_t o_in, mp_print_kind_t kind) {
144144
}
145145

146146
// CIRCUITPY-CHANGE
147+
#if MICROPY_CPYTHON_EXCEPTION_CHAIN
147148
static mp_obj_t mp_load_attr_or_none(mp_obj_t base, qstr attr) {
148149
mp_obj_t dest[2];
149150
mp_load_method_protected(base, attr, dest, true);
150151
return dest[0] == MP_OBJ_NULL ? mp_const_none : dest[0];
151152
}
153+
#endif
152154

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

0 commit comments

Comments
 (0)