pass
for child in acc:
try:
- ret = _findDescedantBreadth(child, pred)
+ ret = _findDescendantBreadth(child, pred)
except Exception:
ret = None
if ret is not None: return ret
if pred(child): matches.append(child)
except Exception:
pass
- findAllDescendants(child, pred, matches)
+ _findAllDescendants(child, pred, matches)
def findAncestor(acc, pred):
'''
@param states: State(s) to add
@type states: Accessibility.StateType
'''
- map(self.impl._this().add, state)
+ map(self.impl._this().add, states)
def remove(self, state):
'''