Commit 13a269d6 authored by mathieui's avatar mathieui

Fix a bug in the configuration writer

parent 0e18a7bc
......@@ -119,6 +119,7 @@ class Config(RawConfigParser):
if line.startswith('['): # check the section
if we_are_in_the_right_section and not written:
result_lines.append('%s= %s' % (option, value))
written = True
if line == '[%s]' % section:
we_are_in_the_right_section = True
section_found = True
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment