Changeset 2982:4c7593b2cc73 in livinglogic.python.xist

Show
Ignore:
Timestamp:
09/25/07 14:18:55 (12 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
newparser
Message:

Fix iterating through children (don't test for the text attribute!)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/ll/xist/scripts/xml2xsc.py

    r2981 r2982  
    1919    if hasattr(node, "text") and node.text: 
    2020        yield [node, node.text] 
    21     if hasattr(node, "getchildren") and node.text: 
     21    if hasattr(node, "getchildren"): 
    2222        for child in node: 
    2323            for path in iterpath(child):