From f9fe1c0423272df4aab9fbad3a874c0fdd36f0d2 Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Thu, 20 Aug 2020 04:01:25 +0900 Subject: [PATCH] Revert "Merge pull request #2106 from RustPython/coolreader18/unittest-tests" This reverts commit 96926daf6ffa2a8dbb374b3c6169b378bd0d67ef, reversing changes made to 230f91582f98ff74abeb8759718e49c386e2b398. --- src/compile.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/compile.rs b/src/compile.rs index a3b7584..26eca75 100644 --- a/src/compile.rs +++ b/src/compile.rs @@ -479,9 +479,7 @@ impl Compiler { self.compile_statements(body)?; - // sort of "stack up" the layers of with blocks: - // with a, b: body -> start_with(a) start_with(b) body() end_with(b) end_with(a) - for end_label in end_labels.into_iter().rev() { + for end_label in end_labels { self.emit(Instruction::PopBlock); self.emit(Instruction::EnterFinally); self.set_label(end_label);