Skip to content

Commit 329d158

Browse files
committed
Fix ternary expression
1 parent 43dc870 commit 329d158

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/flowgraph.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1405,7 +1405,7 @@ optimize_const_sequence(PyObject *const_cache, cfg_instr* inst, int n, PyObject
14051405

14061406
int build = inst[n].i_opcode;
14071407
assert(build == BUILD_LIST || build == BUILD_SET);
1408-
int extend = (build == BUILD_LIST) ? SET_UPDATE : LIST_EXTEND;
1408+
int extend = (build == BUILD_LIST) ? LIST_EXTEND : SET_UPDATE;
14091409

14101410
if (n < 3 || !is_sequence_constant(inst, n)) {
14111411
return SUCCESS;

0 commit comments

Comments
 (0)