def _append_rem_tag_filter(name):
     if hasattr(cfg, name):
         tag_opts = getattr(cfg, name)
         for tag in cfg.constants.supported_tags[name]:
             if tag not in tag_opts:
                 final_tags.append(
                     configuration.TagRegex(False, regex_fmt % tag))
 def _append_inc_tag_filter(name):
     if hasattr(cfg, name):
         tag_opts = getattr(cfg, name)
         for tag in tag_opts:
             final_tags.append(configuration.TagRegex(
                 True, regex_fmt % tag))