aboutsummaryrefslogtreecommitdiffstats
path: root/mako/pyparser.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-04-13 13:35:13 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2014-04-13 13:35:13 -0400
commitc314ecf67074218cae1ae0c8591a711f37758c72 (patch)
treed27af3ca90639c9070306c048117c9c826d8acaa /mako/pyparser.py
parent0b1cce614cfd7ad95083cf3aa8b41462ba932762 (diff)
downloadexternal_python_mako-c314ecf67074218cae1ae0c8591a711f37758c72.tar.gz
external_python_mako-c314ecf67074218cae1ae0c8591a711f37758c72.tar.bz2
external_python_mako-c314ecf67074218cae1ae0c8591a711f37758c72.zip
- Fixed bug in Python parsing logic which would fail on Python 3
when a "try/except" targeted a tuple of exception types, rather than a single exception. fixes #227
Diffstat (limited to 'mako/pyparser.py')
-rw-r--r--mako/pyparser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mako/pyparser.py b/mako/pyparser.py
index aa2d882..db5c295 100644
--- a/mako/pyparser.py
+++ b/mako/pyparser.py
@@ -102,7 +102,7 @@ if _ast:
if node.name is not None:
self._add_declared(node.name)
if node.type is not None:
- self.listener.undeclared_identifiers.add(node.type.id)
+ self.visit(node.type)
for statement in node.body:
self.visit(statement)