summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--py/objset.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/py/objset.c b/py/objset.c
index 3e98c30e8..799ba9df0 100644
--- a/py/objset.c
+++ b/py/objset.c
@@ -351,11 +351,9 @@ STATIC mp_obj_t set_issuperset_proper(mp_obj_t self_in, mp_obj_t other_in) {
}
STATIC mp_obj_t set_equal(mp_obj_t self_in, mp_obj_t other_in) {
+ assert(is_set_or_frozenset(other_in));
check_set_or_frozenset(self_in);
mp_obj_set_t *self = MP_OBJ_TO_PTR(self_in);
- if (!is_set_or_frozenset(other_in)) {
- return mp_const_false;
- }
mp_obj_set_t *other = MP_OBJ_TO_PTR(other_in);
if (self->set.used != other->set.used) {
return mp_const_false;