]> granicus.if.org Git - python/commitdiff
take into account the fact that SETUP_WITH pushes a finally block
authorBenjamin Peterson <benjamin@python.org>
Mon, 25 May 2009 20:12:57 +0000 (20:12 +0000)
committerBenjamin Peterson <benjamin@python.org>
Mon, 25 May 2009 20:12:57 +0000 (20:12 +0000)
Python/compile.c

index e263d76342a7e6ec6d890fc1fd61e4f3f85a613c..df12bde44067810ef3201c6b022de315796b390b 100644 (file)
@@ -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: