]> granicus.if.org Git - python/commit
Fix bug that allowed future statements virtually anywhere in a module.
authorJeremy Hylton <jeremy@alum.mit.edu>
Fri, 4 Feb 2005 18:38:43 +0000 (18:38 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Fri, 4 Feb 2005 18:38:43 +0000 (18:38 +0000)
commitc9add9a483166c4c2494ccd7d9402eb3d497aa4f
tree595340aa649cb34d47b29bfe3e47ec28b22d3ac7
parent1f1d252f516968df8310835c388ad7323c513134
Fix bug that allowed future statements virtually anywhere in a module.

If we exit via the break here, we need to set ff_last_lineno or
FUTURE_POSSIBLE() will remain true.  The bug affected statements
containing a variety of expressions, but not all expressions.  It has
been present since Python 2.2.
Python/future.c