Changeset 6575 for anuga_core/source


Ignore:
Timestamp:
Mar 23, 2009, 8:34:34 AM (16 years ago)
Author:
rwilson
Message:

Removed usage of function available only in python 2.5.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/utilities/system_tools.py

    r6556 r6575  
    269269                    if child not in var_list:
    270270                        var_list.append(child)
    271             if any(isinstance(child, Node) for child in node.getChildren()):
    272                 for child in node.getChildren():
    273                     var_list = get_vars_body(child, var_list)
     271            for child in node.getChildren():
     272                if isinstance(child, Node):
     273                    for child in node.getChildren():
     274                        var_list = get_vars_body(child, var_list)
     275                    break
     276##            if any(isinstance(child, Node) for child in node.getChildren()):
     277##                for child in node.getChildren():
     278##                    var_list = get_vars_body(child, var_list)
    274279
    275280        return var_list
Note: See TracChangeset for help on using the changeset viewer.