Fix Group subscr to detect delete correctly

Fixes #1957
This commit is contained in:
Scott Shawcroft 2019-07-02 18:15:23 -07:00
parent f0a112ef5d
commit 745ff8f8c1
No known key found for this signature in database
GPG Key ID: 9349BC7E64B1921E

View File

@ -295,7 +295,7 @@ STATIC mp_obj_t group_subscr(mp_obj_t self_in, mp_obj_t index_obj, mp_obj_t valu
if (value == MP_OBJ_SENTINEL) {
// load
return common_hal_displayio_group_get(self, index);
} else if (value == mp_const_none) {
} else if (value == MP_OBJ_NULL) {
common_hal_displayio_group_pop(self, index);
} else {
common_hal_displayio_group_set(self, index, value);