summaryrefslogtreecommitdiff
path: root/shared-bindings
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2019-07-02 18:15:23 -0700
committerScott Shawcroft <scott@tannewt.org>2019-07-02 18:15:23 -0700
commit745ff8f8c185ea924922e708d1257f4c6377fb90 (patch)
treed59c0d9d1dd1ec34b8a5ba065c254ef123fe7f82 /shared-bindings
parentf0a112ef5d04fc17a49ad8e2d74e5e23f3c40dd5 (diff)
Fix Group subscr to detect delete correctly
Fixes #1957
Diffstat (limited to 'shared-bindings')
-rw-r--r--shared-bindings/displayio/Group.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-bindings/displayio/Group.c b/shared-bindings/displayio/Group.c
index 76719c580..5a35424ce 100644
--- a/shared-bindings/displayio/Group.c
+++ b/shared-bindings/displayio/Group.c
@@ -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);