def _mod_config(self):
        addrs = set()
        config_text = "<IfModule mod_ssl.c>\n"

        for achall in self.achalls:
            achall_addrs = self._get_addrs(achall)
            addrs.update(achall_addrs)

            config_text += self._get_config_text(achall, achall_addrs)

        config_text += "</IfModule>\n"

        self._conf_include_check(self.configurator.parser.loc["default"])
        self.configurator.reverter.register_file_creation(
            True, self.challenge_conf)

        logger.debug("writing a config file with text:\n %s", config_text)
        with open(self.challenge_conf, "w") as new_conf:
            new_conf.write(config_text)

        return addrs
Convert a dictionary holding CC analysis results into Code Climate
dataset/ETHPy150Open letsencrypt/letsencrypt/certbot-apache/certbot_apache/tls_sni_01.py/ApacheTlsSni01._mod_config--crossover with--dataset/ETHPy150Open rubik/radon/radon/cli/tools.py/dict_to_codeclimate_issues