Skip to content

Commit 9fe6718

Browse files
committed
Use a better name.
1 parent ad24c19 commit 9fe6718

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Python/codegen.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4561,7 +4561,7 @@ codegen_comprehension_generator(compiler *c, location loc,
45614561
}
45624562

45634563
static int
4564-
codegen_starred_comprehension(compiler *c, location loc, expr_ty value, bool discard)
4564+
codegen_unpack_starred(compiler *c, location loc, expr_ty value, bool discard)
45654565
{
45664566
NEW_JUMP_TARGET_LABEL(c, unpack_start);
45674567
NEW_JUMP_TARGET_LABEL(c, unpack_end);
@@ -4667,7 +4667,7 @@ codegen_sync_comprehension_generator(compiler *c, location loc,
46674667
case COMP_GENEXP:
46684668
assert(!avoid_creation);
46694669
if (elt->kind == Starred_kind) {
4670-
RETURN_IF_ERROR(codegen_starred_comprehension(c, elt_loc, elt->v.Starred.value, /*discard=*/false));
4670+
RETURN_IF_ERROR(codegen_unpack_starred(c, elt_loc, elt->v.Starred.value, /*discard=*/false));
46714671
}
46724672
else {
46734673
VISIT(c, expr, elt);
@@ -4678,7 +4678,7 @@ codegen_sync_comprehension_generator(compiler *c, location loc,
46784678
case COMP_LISTCOMP:
46794679
if (avoid_creation) {
46804680
if (elt->kind == Starred_kind) {
4681-
RETURN_IF_ERROR(codegen_starred_comprehension(c, elt_loc, elt->v.Starred.value, /*discard=*/true));
4681+
RETURN_IF_ERROR(codegen_unpack_starred(c, elt_loc, elt->v.Starred.value, /*discard=*/true));
46824682
} else {
46834683
VISIT(c, expr, elt);
46844684
ADDOP(c, elt_loc, POP_TOP);
@@ -4831,7 +4831,7 @@ codegen_async_comprehension_generator(compiler *c, location loc,
48314831
case COMP_LISTCOMP:
48324832
if (avoid_creation) {
48334833
if (elt->kind == Starred_kind) {
4834-
RETURN_IF_ERROR(codegen_starred_comprehension(c, elt_loc, elt->v.Starred.value, /*discard=*/false));
4834+
RETURN_IF_ERROR(codegen_unpack_starred(c, elt_loc, elt->v.Starred.value, /*discard=*/false));
48354835
} else {
48364836
VISIT(c, expr, elt);
48374837
ADDOP(c, elt_loc, POP_TOP);

0 commit comments

Comments
 (0)