@classmethod
    def _get_field(cls, plan, name, default=None):
        if cls.plans:
            assert plan

            for plan_name, info in cls.plans:
                if plan_name == plan and name in info:
                    return info[name]

        return getattr(cls, name, default)
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/hostingsvcs/service.py/HostingService._get_field/original