diff genshi/template/eval.py @ 896:248d6671a7e1

Fix for infinite recursion when parsing argument names from tuples. Closes #383.
author cmlenz
date Wed, 21 Apr 2010 22:02:28 +0000
parents abfabaea906f
children 85e4678337cf
line wrap: on
line diff
--- a/genshi/template/eval.py
+++ b/genshi/template/eval.py
@@ -499,7 +499,7 @@
                 names.add(node.asname or node.name)
             elif isinstance(node, _ast.Tuple):
                 for elt in node.elts:
-                    _process(node)
+                    _process(elt)
         if hasattr(node, 'args'):
             for arg in node.args:
                 _process(arg)
Copyright (C) 2012-2017 Edgewall Software