Fix a bug in the configuration writer
This commit is contained in:
parent
0e18a7bc05
commit
13a269d6b2
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue