# HG changeset patch # User cmlenz # Date 1271407033 0 # Node ID fc1e28cb0beeb19b042c72fee767c76947cb09f2 # Parent 3b16d762445b8a6a1ee8854d846547a99aa1a294 AST transformer now also clones excepthandler nodes (see #379). diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -8,9 +8,8 @@ during GSoC 2008. * Updated the Python AST processing for template code evaluation to use the `_ast` module instead of the deprecated `compiler` package, including an - adapter layer for Python 2.4, and some workarounds to enable compatibility - with Google App Engine. This, too, is the result of integrating work done - by Marcin Kurczych during GSoC 2008. + adapter layer for Python 2.4. This, too, is the result of integrating work + done by Marcin Kurczych during GSoC 2008. * Added caching in the serialization stage for improved performance. * Various improvements to the HTML sanitization filter. * Fix problem with I18n filter that would get confused by expressions in diff --git a/genshi/template/astutil.py b/genshi/template/astutil.py --- a/genshi/template/astutil.py +++ b/genshi/template/astutil.py @@ -742,6 +742,7 @@ visit_TryExcept = _clone visit_TryFinally = _clone visit_Assert = _clone + visit_ExceptHandler = _clone visit_Import = _clone visit_ImportFrom = _clone