From 49a6b0ef7086b59ac9fd039bebaedef952ae907d Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 25 May 2009 20:12:57 +0000 Subject: take into account the fact that SETUP_WITH pushes a finally block --- Python/compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v0.12