twizy_bringup/src/twizy_bringup/twizyparam.py
def _traverse_dict(d, callback):
    """Calls a callback for every key-value pair in d recursively
    
    :param d: A dictionary to traverse
    :type d: list
    :param callback: A callback accepting a dictionary, key and value as
        arguments
    :type callback: callable
    """

    kv = d.copy().items() if isinstance(d, dict) else enumerate(d.copy())
    for k, v in kv:
        for a in (k, v):
            if isinstance(a, (dict, list)):
                _traverse_dict(a, callback)
        callback(d, k, v)
Calls a callback for every key-value pair in d recursively
    
    :param d: A dictionary to traverse
    :type d: list
    :param callback: A callback accepting a dictionary, key and value as
        arguments
    :type callback: callable
    
Calls a callback for every key-value pair in d recursively
Calls a callback for every key - value pair in d recursively
def _traverse_dict(d, callback):
    kv = d.copy().items() if isinstance(d, dict) else enumerate(d.copy())
    for k, v in kv:
        for a in (k, v):
            if isinstance(a, (dict, list)):
                _traverse_dict(a, callback)
        callback(d, k, v)
def _traverse_dict ( d , callback ) : kv = d . copy ( ) . items ( ) if isinstance ( d , dict ) else enumerate ( d . copy ( ) ) for k , v in kv : for a in ( k , v ) : if isinstance ( a , ( dict , list ) ) : _traverse_dict ( a , callback ) callback ( d , k , v )
Calls a callback for every key-value pair in d recursively
Calls a callback for every key - value pair in d recursively
"""Calls a callback for every key-value pair in d recursively
    
    :param d: A dictionary to traverse
    :type d: list
    :param callback: A callback accepting a dictionary, key and value as
        arguments
    :type callback: callable
    """
d
A dictionary to traverse
A dictionary to traverse
callback
A callback accepting a dictionary, key and value as
arguments
A callback accepting a dictionary key and value as arguments