8000 Merge pull request #1983 from tannewt/fix_group_subscr_delete · losingrose/circuitpython@69460b9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 69460b9

Browse files
authored
Merge pull request adafruit#1983 from tannewt/fix_group_subscr_delete
Fix Group subscr to detect delete correctly
2 parents 2761ae6 + 745ff8f commit 69460b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-bindings/displayio/Group.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ STATIC mp_obj_t group_subscr(mp_obj_t self_in, mp_obj_t index_obj, mp_obj_t valu
295295
if (value == MP_OBJ_SENTINEL) {
296296
// load
297297
return common_hal_displayio_group_get(self, index);
298-
} else if (value == mp_const_none) {
298+
} else if (value == MP_OBJ_NULL) {
299299
common_hal_displayio_group_pop(self, index);
300300
} else {
301301
common_hal_displayio_group_set(self, index, value);

0 commit comments

Comments
 (0)
0