third_party/blink/tools/blinkpy/web_tests/layout_package/json_results_generator.py
def convert_times_trie_to_flat_paths(trie, prefix=None):
    """Converts the directory structure in the given trie to flat paths, prepending a prefix to each."""
    result = {}
    for name, data in list(trie.items()):
        if prefix:
            name = prefix + "/" + name
        if isinstance(data, int):
            result[name] = data
        else:
            result.update(convert_times_trie_to_flat_paths(data, name))

    return result
Converts the directory structure in the given trie to flat paths, prepending a prefix to each.
Converts the directory structure in the given trie to flat paths, prepending a prefix to each.
Converts the directory structure in the given trie to flat paths prepending a prefix to each .
def convert_times_trie_to_flat_paths(trie, prefix=None):
    result = {}
    for name, data in list(trie.items()):
        if prefix:
            name = prefix + "/" + name
        if isinstance(data, int):
            result[name] = data
        else:
            result.update(convert_times_trie_to_flat_paths(data, name))
    return result
def convert_times_trie_to_flat_paths ( trie , prefix = None ) : result = { } for name , data in list ( trie . items ( ) ) : if prefix : name = prefix + "/" + name if isinstance ( data , int ) : result [ name ] = data else : result . update ( convert_times_trie_to_flat_paths ( data , name ) ) return result
Converts the directory structure in the given trie to flat paths, prepending a prefix to each.
Converts the directory structure in the given trie to flat paths prepending a prefix to each .
"""Converts the directory structure in the given trie to flat paths, prepending a prefix to each."""
trie
prefix