Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _write2conf(section, opts):
if not conf.has_section(section):
conf.add_section(section)
for k, v in opts.items():
conf.set(section, k, v)
with open(conf_file, 'w') as f:
conf.write(f)
def _write2conf(section, opts):
if not conf.has_section(section):
conf.add_section(section)
for k, v in opts.items():
conf.set(section, k, v)
with open(conf_file, 'w') as f:
conf.write(f)