]> granicus.if.org Git - python/commit
Fix for SF bug 1569998: break permitted inside try.
authorJeremy Hylton <jeremy@alum.mit.edu>
Wed, 4 Oct 2006 02:24:52 +0000 (02:24 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Wed, 4 Oct 2006 02:24:52 +0000 (02:24 +0000)
commit82271f13e7eab69b909d538556e4781e971f7584
tree1e6933364df5194411899d9b6535a525667d1948
parent1e3c3b15df64a8ca083f63af7884ce60bf4e9c16
Fix for SF bug 1569998: break permitted inside try.

The compiler was checking that there was something on the fblock
stack, but not that there was a loop on the stack.  Fixed that and
added a test for the specific syntax error.

Bug fix candidate.
Lib/test/test_syntax.py
Python/compile.c