def pop_child(self, name):
        "Return a named child or None if not found."
        for index, child in enumerate(self.children):
            if child.name == name:
                return self.children.pop(index)
Return a named child or None if not found.
recipes/Python/577635_Directory_Pruner_3/recipe-577635.py