MCPcopy
hub / github.com/django/django / _walk

Function _walk

django/utils/autoreload.py:198–202  ·  view source on GitHub ↗
(node, path)

Source from the content-addressed store, hash-verified

196
197 # Turn the tree into a list of Path instances.
198 def _walk(node, path):
199 for prefix, child in node.items():
200 yield from _walk(child, [*path, prefix])
201 if not node:
202 yield Path(*path)
203
204 return tuple(_walk(tree, ()))
205

Callers 1

common_rootsFunction · 0.85

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected