Skip to content

Commit 1402e7a

Browse files
Apply suggestions from code review
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
1 parent 656e46b commit 1402e7a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Python/compile.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -5147,7 +5147,8 @@ compiler_comprehension_iter(struct compiler *c, location loc,
51475147
VISIT(c, expr, comp->iter);
51485148
if (comp->is_async) {
51495149
ADDOP(c, loc, GET_AITER);
5150-
} else {
5150+
}
5151+
else {
51515152
ADDOP(c, loc, GET_ITER);
51525153
}
51535154
return SUCCESS;
@@ -5180,7 +5181,8 @@ compiler_comprehension(struct compiler *c, expr_ty e, int type,
51805181
if (push_inlined_comprehension_state(c, loc, entry, &inline_state)) {
51815182
goto error;
51825183
}
5183-
} else {
5184+
}
5185+
else {
51845186
if (compiler_enter_scope(c, name, COMPILER_SCOPE_COMPREHENSION,
51855187
(void *)e, e->lineno) < 0)
51865188
{

0 commit comments

Comments
 (0)