Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
  • Loading branch information
carljm and erlend-aasland authored May 9, 2023
1 parent 656e46b commit 1402e7a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Python/compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -5147,7 +5147,8 @@ compiler_comprehension_iter(struct compiler *c, location loc,
VISIT(c, expr, comp->iter);
if (comp->is_async) {
ADDOP(c, loc, GET_AITER);
} else {
}
else {
ADDOP(c, loc, GET_ITER);
}
return SUCCESS;
Expand Down Expand Up @@ -5180,7 +5181,8 @@ compiler_comprehension(struct compiler *c, expr_ty e, int type,
if (push_inlined_comprehension_state(c, loc, entry, &inline_state)) {
goto error;
}
} else {
}
else {
if (compiler_enter_scope(c, name, COMPILER_SCOPE_COMPREHENSION,
(void *)e, e->lineno) < 0)
{
Expand Down

0 comments on commit 1402e7a

Please sign in to comment.