Coverage for vcr.stubs.compat : 67%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
""" The python3 http.client api moved some stuff around, so this is an abstraction layer that tries to cope with this move. """
return message.getallmatchingheaders(name) else:
for (key, values) in get_headers(message): for value in values: yield key, value
for key in set(message.keys()): if six.PY3: yield key, message.get_all(key) else: yield key, message.getheaders(key)
return http.client.parse_headers(BytesIO(headers)) |