Fix a bug in the configuration writer

This commit is contained in:
mathieui 2012-03-08 22:38:26 +01:00
parent 0e18a7bc05
commit 13a269d6b2

View file

@ -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