def writeConfigFile(self):
        filecontent = []
        for configid in self.serverinfo:
            thisdata = self.serverinfo[configid]
            filecontent.append("[%s]" % str(configid))
            filecontent += thisdata

        f = open(self.fullpath, "wb")
        for l in filecontent:
            f.write(l % "%s\n")
        f.close()
        print "[+] Saved new config file"
        return
dataset/ETHPy150Open corelan/dnshjmon/dnshjmon.py/MailConfig.writeConfigFile/swapped operands of `%`