Edgewall Software

Changeset 1167 for trunk


Ignore:
Timestamp:
Jul 3, 2011, 9:02:43 PM (12 years ago)
Author:
hodgestar
Message:

Fix bug in ASTTransformer's cloning that overwrote AST nodes name attribute instead of copy the attributes listed in ASTNode._attributes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/genshi/template/astutil.py

    r1159 r1167  
    728728        for name in getattr(clone, '_attributes', ()):
    729729            try:
    730                 setattr(clone, 'name', getattr(node, name))
     730                setattr(clone, name, getattr(node, name))
    731731            except AttributeError:
    732732                pass
Note: See TracChangeset for help on using the changeset viewer.