Skip to content

Commit 0393552

Browse files
committed
code formatting
1 parent 0713bbc commit 0393552

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

Python/codegen.c

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4479,7 +4479,7 @@ codegen_sync_comprehension_generator(compiler *c, location loc,
44794479
/* comprehension specific code */
44804480
switch (type) {
44814481
case COMP_GENEXP:
4482-
if (elt->kind == Starred_kind){
4482+
if (elt->kind == Starred_kind) {
44834483
NEW_JUMP_TARGET_LABEL(c, unpack_start);
44844484
NEW_JUMP_TARGET_LABEL(c, unpack_end);
44854485
VISIT(c, expr, elt->v.Starred.value);
@@ -4493,39 +4493,39 @@ codegen_sync_comprehension_generator(compiler *c, location loc,
44934493
ADDOP(c, NO_LOCATION, END_FOR);
44944494
ADDOP(c, NO_LOCATION, POP_ITER);
44954495
}
4496-
else{
4496+
else {
44974497
VISIT(c, expr, elt);
44984498
ADDOP_YIELD(c, elt_loc);
44994499
ADDOP(c, elt_loc, POP_TOP);
45004500
}
45014501
break;
45024502
case COMP_LISTCOMP:
4503-
if (elt->kind == Starred_kind){
4503+
if (elt->kind == Starred_kind) {
45044504
VISIT(c, expr, elt->v.Starred.value);
45054505
ADDOP_I(c, elt_loc, LIST_EXTEND, depth + 1);
45064506
}
4507-
else{
4507+
else {
45084508
VISIT(c, expr, elt);
45094509
ADDOP_I(c, elt_loc, LIST_APPEND, depth + 1);
45104510
}
45114511
break;
45124512
case COMP_SETCOMP:
4513-
if (elt->kind == Starred_kind){
4513+
if (elt->kind == Starred_kind) {
45144514
VISIT(c, expr, elt->v.Starred.value);
45154515
ADDOP_I(c, elt_loc, SET_UPDATE, depth + 1);
45164516
}
4517-
else{
4517+
else {
45184518
VISIT(c, expr, elt);
45194519
ADDOP_I(c, elt_loc, SET_ADD, depth + 1);
45204520
}
45214521
break;
45224522
case COMP_DICTCOMP:
4523-
if (val == NULL){
4523+
if (val == NULL) {
45244524
/* unpacking (**) case */
45254525
VISIT(c, expr, elt);
45264526
ADDOP_I(c, elt_loc, DICT_UPDATE, depth+1);
45274527
}
4528-
else{
4528+
else {
45294529
/* With '{k: v}', k is evaluated before v, so we do
45304530
the same. */
45314531
VISIT(c, expr, elt);
@@ -4619,7 +4619,7 @@ codegen_async_comprehension_generator(compiler *c, location loc,
46194619
/* comprehension specific code */
46204620
switch (type) {
46214621
case COMP_GENEXP:
4622-
if (elt->kind == Starred_kind){
4622+
if (elt->kind == Starred_kind) {
46234623
NEW_JUMP_TARGET_LABEL(c, unpack_start);
46244624
NEW_JUMP_TARGET_LABEL(c, unpack_end);
46254625
VISIT(c, expr, elt->v.Starred.value);
@@ -4633,39 +4633,39 @@ codegen_async_comprehension_generator(compiler *c, location loc,
46334633
ADDOP(c, NO_LOCATION, END_FOR);
46344634
ADDOP(c, NO_LOCATION, POP_ITER);
46354635
}
4636-
else{
4636+
else {
46374637
VISIT(c, expr, elt);
46384638
ADDOP_YIELD(c, elt_loc);
46394639
ADDOP(c, elt_loc, POP_TOP);
46404640
}
46414641
break;
46424642
case COMP_LISTCOMP:
4643-
if (elt->kind == Starred_kind){
4643+
if (elt->kind == Starred_kind) {
46444644
VISIT(c, expr, elt->v.Starred.value);
46454645
ADDOP_I(c, elt_loc, LIST_EXTEND, depth + 1);
46464646
}
4647-
else{
4647+
else {
46484648
VISIT(c, expr, elt);
46494649
ADDOP_I(c, elt_loc, LIST_APPEND, depth + 1);
46504650
}
46514651
break;
46524652
case COMP_SETCOMP:
4653-
if (elt->kind == Starred_kind){
4653+
if (elt->kind == Starred_kind) {
46544654
VISIT(c, expr, elt->v.Starred.value);
46554655
ADDOP_I(c, elt_loc, SET_UPDATE, depth + 1);
46564656
}
4657-
else{
4657+
else {
46584658
VISIT(c, expr, elt);
46594659
ADDOP_I(c, elt_loc, SET_ADD, depth + 1);
46604660
}
46614661
break;
46624662
case COMP_DICTCOMP:
4663-
if (val == NULL){
4663+
if (val == NULL) {
46644664
/* unpacking (**) case */
46654665
VISIT(c, expr, elt);
46664666
ADDOP_I(c, elt_loc, DICT_UPDATE, depth+1);
46674667
}
4668-
else{
4668+
else {
46694669
/* With '{k: v}', k is evaluated before v, so we do
46704670
the same. */
46714671
VISIT(c, expr, elt);

0 commit comments

Comments
 (0)