diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-05-25 20:12:57 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-05-25 20:12:57 +0000 |
commit | eceb4a2629103d20033ff1c1664824e50c193a91 (patch) | |
tree | 4768aff847131bdde281c02026f1f63779b3818b /Python/compile.c | |
parent | b7b65919bf38f9b82f96d1b282a1bc03dfdc8241 (diff) | |
download | cpython-eceb4a2629103d20033ff1c1664824e50c193a91.tar.gz |
take into account the fact that SETUP_WITH pushes a finally block
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c index e263d76342..df12bde440 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -779,7 +779,7 @@ opcode_stack_effect(int opcode, int oparg) case BREAK_LOOP: return 0; case SETUP_WITH: - return 1; + return 4; case WITH_CLEANUP: return -1; /* XXX Sometimes more */ case LOAD_LOCALS: |