MCPcopy Index your code
hub / github.com/python/cpython / walk

Function walk

Lib/test/test_importlib/resources/zip.py:19–24  ·  view source on GitHub ↗
(tree, prefix='')

Source from the content-addressed store, hash-verified

17
18
19def walk(tree, prefix=''):
20 for name, contents in tree.items():
21 if isinstance(contents, dict):
22 yield from walk(contents, prefix=f'{prefix}{name}/')
23 else:
24 yield f'{prefix}{name}', contents

Callers 1

make_zip_fileFunction · 0.70

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…