mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-08 04:34:01 +00:00
Some of them were renamed in: https://github.com/status-im/desktop-qa-automation/pull/352 Signed-off-by: Jakub Sokołowski <jakub@status.im>
13 lines
248 B
Python
13 lines
248 B
Python
import logging
|
|
|
|
import object
|
|
|
|
LOG = logging.getLogger(__name__)
|
|
|
|
|
|
def walk_children(parent, depth: int = 1000):
|
|
for child in object.children(parent):
|
|
yield child
|
|
if depth:
|
|
yield from walk_children(child, depth - 1)
|