def flat(root, ignore_access_errors=False):
    for key, subkeys, values in walk(root, ignore_access_errors):
        yield key
        for value in values:
            yield value
Yield a flattened version the tree rooted at root.
dataset/ETHPy150Open tjguk/winsys/winsys/registry.py/flat