diff genshi/template/eval.py @ 582:b21da79c9bde

Follow-up fix to [693:694]. Again, thanks to Erik Bray for reporting.
author cmlenz
date Wed, 01 Aug 2007 16:22:05 +0000
parents 71e3205925e6
children 5413c9d95db1
line wrap: on
line diff
--- a/genshi/template/eval.py
+++ b/genshi/template/eval.py
@@ -655,7 +655,7 @@
 
     def visitAugAssign(self, node):
         if isinstance(node.node, ast.Name) \
-                and node.node.name not in flatten(self.locals[-1]):
+                and node.node.name not in flatten(self.locals):
             name = node.node.name
             node.node = ast.Subscript(ast.Name('data'), 'OP_APPLY',
                                       [ast.Const(name)])
Copyright (C) 2012-2017 Edgewall Software