From f563f8782d1d222c46f3fedb3612d53f7a927706 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 20 Jul 2012 09:47:42 -0400 Subject: [PATCH] - [bug] Fixed regression in 0.7.1 where AST parsing for Py2.4 was broken. [ticket:193] --- CHANGES | 5 +++++ mako/__init__.py | 2 +- mako/pyparser.py | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 17d26d4..29b05c4 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,8 @@ +0.7.2 +- [bug] Fixed regression in 0.7.1 where AST + parsing for Py2.4 was broken. + [ticket:193] + 0.7.1 - [feature] Control lines with no bodies will now succeed, as "pass" is added for these diff --git a/mako/__init__.py b/mako/__init__.py index 20ad621..a16564b 100644 --- a/mako/__init__.py +++ b/mako/__init__.py @@ -5,5 +5,5 @@ # the MIT License: http://www.opensource.org/licenses/mit-license.php -__version__ = '0.7.1' +__version__ = '0.7.2' diff --git a/mako/pyparser.py b/mako/pyparser.py index cd330f6..1f39756 100644 --- a/mako/pyparser.py +++ b/mako/pyparser.py @@ -274,7 +274,7 @@ def _visit_function(self, node, args): local_ident_stack = self.local_ident_stack self.local_ident_stack = local_ident_stack.union([ - arg_id(arg) for arg in node.argnames + arg for arg in node.argnames ]) for n in node.getChildNodes():