# Path: kano_settings/system/boot_config/boot_config_filter.py
# class Filter(object):
#     ALL = 'all'
#     EDID_TEMPLATE = 'EDID={edid}'
# 
#     @classmethod
#     def get_edid_filter(cls, edid):
#         if not edid:
#             return cls.ALL
# 
#         return cls.EDID_TEMPLATE.format(edid=edid)


import re
from kano_settings.system.boot_config.boot_config_filter import Filter
            commented_out = arg.get('is_commented_out', False)

        elif isinstance(arg, tuple):
            setting = arg[0]

            if len(arg) >= 2:
                value = arg[1]

            if len(arg) >= 3:
                config_filter = arg[2]

        elif isinstance(arg, basestring):
            match = cls.CONFIG_LINE_RE.match(arg)

            if match:
                groups = match.groups()
                comment = groups[0] == cls.COMMENT_SYMBOL
                commented_out = comment
                setting = groups[1]
                value = groups[2]
            else:
                if cls.MANUAL_COMMENT_RE.match(arg):
                    manual_comment = True

                setting = arg.strip(' {}'.format(cls.COMMENT_SYMBOL))
                comment = True

        return setting, value, config_filter, comment, manual_comment, commented_out



# Path: kano_settings/system/boot_config/boot_config_filter.py
# class Filter(object):
#     ALL = 'all'
#     EDID_TEMPLATE = 'EDID={edid}'
# 
#     @classmethod
#     def get_edid_filter(cls, edid):
#         if not edid:
#             return cls.ALL
# 
#         return cls.EDID_TEMPLATE.format(edid=edid)


# Path: kano_settings/system/boot_config/boot_config_line.py
import re
from kano_settings.system.boot_config.boot_config_filter import Filter

            commented_out = arg.get('is_commented_out', False)

        elif isinstance(arg, tuple):
            setting = arg[0]

            if len(arg) >= 2:
                value = arg[1]

            if len(arg) >= 3:
                config_filter = arg[2]

        elif isinstance(arg, basestring):
            match = cls.CONFIG_LINE_RE.match(arg)

            if match:
                groups = match.groups()
                comment = groups[0] == cls.COMMENT_SYMBOL
                commented_out = comment
                setting = groups[1]
                value = groups[2]
            else:
                if cls.MANUAL_COMMENT_RE.match(arg):
                    manual_comment = True

                setting = arg.strip(' {}'.format(cls.COMMENT_SYMBOL))
                comment = True

        return setting, value, config_filter, comment, manual_comment, commented_out



    def __eq__(self, other):