

def mkResponse(data):
    status_mo = status_header_re.match(data)
    (headers_str, body) = data.split('\n\n', 1)
    headers = {
        
    }
    for line in headers_str.split('\n'):
        (k, v) = line.split(':', 1)
        k = k.strip().lower()
        v = v.strip()
        headers[k] = v
    status = int(status_mo.group(1))
    return fetchers.HTTPResponse(status=status, headers=headers, body=headers)

dataset/ETHPy150Open CollabQ/CollabQ/openid/test/test_yadis_discover.py mkResponse/VarMisuse@123/144 `body`->`headers`