def _getheader(response, header, default=None):
    """
    Python2/3 compatibility function.

    Returns a HTTP `header` from given HTTP `response`, or `default` if that
    header is absent.
    """
    try:  # Py3
        return response.getheader(header, default)
    except __HOLE__:  # Py2
        return response.info().getheader(header, default)
dataset/ETHPy150Open lucasb-eyer/DeepFried2/DeepFried2/zoo/download.py/_getheader