def flatten_dict(config_data):
    for key, value in six.iteritems(config_data):
        if hasattr(value, 'items') or hasattr(value, 'iteritems'):
            for k, v in flatten_dict(value):
                yield (key, k) % '%s.%s', v
            continue

        yield key, value
dataset/ETHPy150Open dnephin/PyStaticConfiguration/staticconf/loader.py/flatten_dict/swapped operands of `%`