Skip to content

Commit

Permalink
Reduce complexity
Browse files Browse the repository at this point in the history
(I had different code in one of the branches during debugging. :-)

Co-authored-by: Irit Katriel <[email protected]>
  • Loading branch information
gvanrossum and iritkatriel authored Aug 24, 2023
1 parent 1ca845a commit 652f9a1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Tools/cases_generator/stacking.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,9 +411,7 @@ def write_components(
if copy_src_effect.name != copy.dst.effect.name:
if copy_src_effect.name == UNUSED:
copy_src_effect = copy.src.as_stack_effect()
out.assign(copy.dst.effect, copy_src_effect)
else:
out.assign(copy.dst.effect, copy_src_effect)
out.assign(copy.dst.effect, copy_src_effect)
for peek in mgr.peeks:
out.assign(
peek.effect,
Expand Down

0 comments on commit 652f9a1

Please sign in to comment.