mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-24 13:34:52 +00:00
Revert "Merge pull request #2106 from RustPython/coolreader18/unittest-tests"
This reverts commit 96926daf6ffa2a8dbb374b3c6169b378bd0d67ef, reversing changes made to 230f91582f98ff74abeb8759718e49c386e2b398.
This commit is contained in:
parent
7f0798b235
commit
f9fe1c0423
1 changed files with 1 additions and 3 deletions
|
@ -479,9 +479,7 @@ impl<O: OutputStream> Compiler<O> {
|
|||
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue