def _parseHeaderValue(self, header_value):
        values = header_value.split(';', 1)
        if len(values) == 1:
            # There's no extra info -- return the main value and an empty dict
            return values[0], {}
        main_value, extra_values = values[0], values[1].split(';')
        extra_dict = {}
        for value_string in extra_values:
            try:
                key, value = value_string.split('=', 1)
                extra_dict[key.strip()] = value.strip()
            except ValueError:
                # Can't unpack it -- must be malformed. Ignore
                pass
        return main_value, extra_dict
Parse out a complex header value (such as Content-Type, with a value
dataset/ETHPy150Open necaris/python3-openid/openid/fetchers.py/Urllib2Fetcher._parseHeaderValue