bspwm/.config/bspwm/bspwm_auto_padding.py
def find_keys(var, target_key):
    '''Recursively get the values of all instances of the target key'''
    # http://stackoverflow.com/q/9807634
    if hasattr(var, 'items'):
        for key, val in var.items():
            if key == target_key:
                yield val
            if isinstance(val, dict):
                yield from find_keys(val, target_key)
            elif isinstance(val, list):
                for list_val in val:
                    yield from find_keys(list_val, target_key)
Recursively get the values of all instances of the target key
Recursively get the values of all instances of the target key
Recursively get the values of all instances of the target key
def find_keys(var, target_key):
    if hasattr(var, 'items'):
        for key, val in var.items():
            if key == target_key:
                yield val
            if isinstance(val, dict):
                yield from find_keys(val, target_key)
            elif isinstance(val, list):
                for list_val in val:
                    yield from find_keys(list_val, target_key)
def find_keys ( var , target_key ) : if hasattr ( var , 'items' ) : for key , val in var . items ( ) : if key == target_key : yield val if isinstance ( val , dict ) : yield from find_keys ( val , target_key ) elif isinstance ( val , list ) : for list_val in val : yield from find_keys ( list_val , target_key )
Recursively get the values of all instances of the target key
Recursively get the values of all instances of the target key
'''Recursively get the values of all instances of the target key''' # http://stackoverflow.com/q/9807634
var
target_key