MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / find_first_node_with_two_children

Function find_first_node_with_two_children

tools/targets/vsc.py:38–45  ·  view source on GitHub ↗
(tree)

Source from the content-addressed store, hash-verified

36
37from utils import _make_path_relative
38def find_first_node_with_two_children(tree):
39 for key, subtree in tree.items():
40 if len(subtree) >= 2:
41 return key, subtree
42 result = find_first_node_with_two_children(subtree)
43 if result:
44 return result
45 return None, None
46
47
48def filt_tree(tree):

Callers 1

filt_treeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected