diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-05-25 20:12:57 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-05-25 20:12:57 (GMT) |
commit | 49a6b0ef7086b59ac9fd039bebaedef952ae907d (patch) | |
tree | 205d010e91a83483732f408b1a509e26e2b89dbf /Python | |
parent | 1880d8b8231d0085700d5d3c03ee9b16c619720d (diff) | |
download | cpython-49a6b0ef7086b59ac9fd039bebaedef952ae907d.zip cpython-49a6b0ef7086b59ac9fd039bebaedef952ae907d.tar.gz cpython-49a6b0ef7086b59ac9fd039bebaedef952ae907d.tar.bz2 |
take into account the fact that SETUP_WITH pushes a finally block
Diffstat (limited to 'Python')
-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 e263d76..df12bde 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: |