1
0

Comment TreeCache

This commit is contained in:
Erik Johnston
2022-07-18 10:49:12 +01:00
parent 462db2a171
commit 129691f190

View File

@@ -144,6 +144,9 @@ def iterate_tree_cache_entry(d):
def iterate_tree_cache_items(key, value):
"""Helper function to iterate over the leaves of a tree, i.e. a dict of that
can contain dicts.
Returns:
A generator yielding key/value pairs.
"""
if isinstance(value, TreeCacheNode):
for sub_key, sub_value in value.items():