changeset 881:fc1e28cb0bee

AST transformer now also clones excepthandler nodes (see #379).
author cmlenz
date Fri, 16 Apr 2010 08:37:13 +0000
parents 3b16d762445b
children 6f49c23045b1
files ChangeLog genshi/template/astutil.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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
Copyright (C) 2012-2017 Edgewall Software