Skip to content

Commit

Permalink
py/objdeque: Fix deque type flags based on option settings.
Browse files Browse the repository at this point in the history
This fixes a minor issue in the changes made by
7dff38f: the type flags for deque were
meant to be conditionalized based on MICROPY_PY_COLLECTIONS_DEQUE_ITER, but
the computed conditionalized value wasn't used.

Signed-off-by: Dan Halbert <[email protected]>
  • Loading branch information
dhalbert authored and dpgeorge committed Jun 21, 2024
1 parent 88513d1 commit 5040b13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/objdeque.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ static MP_DEFINE_CONST_DICT(deque_locals_dict, deque_locals_dict_table);
MP_DEFINE_CONST_OBJ_TYPE(
mp_type_deque,
MP_QSTR_deque,
MP_TYPE_FLAG_ITER_IS_GETITER,
DEQUE_TYPE_FLAGS,
make_new, deque_make_new,
unary_op, deque_unary_op,
DEQUE_TYPE_SUBSCR
Expand Down

0 comments on commit 5040b13

Please sign in to comment.