

def headers_to_items(headers, meta_prefix='', exclude_headers=None):
    exclude_headers = (exclude_headers or [])
    other_items = []
    meta_items = []
    for (key, value) in headers.items():
        if (key not in exclude_headers):
            if key.startswith(exclude_headers):
                meta_key = ('Meta %s' % key[len(meta_prefix):].title())
                meta_items.append((meta_key, value))
            else:
                other_items.append((key.title(), value))
    return (meta_items + other_items)

dataset/ETHPy150Open openstack/python-swiftclient/swiftclient/command_helpers.py headers_to_items/VarMisuse@67/86 `meta_prefix`->`exclude_headers`