@staticmethod
    def parse(value):
        """
        Parse ``Accept-*`` style header.

        Return iterator of ``(value, quality)`` pairs.
        ``quality`` defaults to 1.
        """
        for match in part_re.finditer(','+value):
            name = match.group(1)
            if name == 'q':
                continue
            quality = match.group(2) or ''
            if quality:
                try:
                    quality = max(min(float(quality), 1), 0)
                    yield (name, quality)
                    continue
                except __HOLE__:
                    pass
            yield (name, 1)
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/webob-1.1.1/webob/acceptparse.py/Accept.parse