summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-03-08 22:38:26 +0100
committermathieui <mathieui@mathieui.net>2012-03-08 22:38:26 +0100
commit13a269d6b211d571486d223bba71bd4230c82838 (patch)
treef40540fbeb0abd0918959210d045b6518c554f66 /src
parent0e18a7bc0550e339fc5b1de244363165dbc04183 (diff)
downloadpoezio-13a269d6b211d571486d223bba71bd4230c82838.tar.gz
poezio-13a269d6b211d571486d223bba71bd4230c82838.tar.bz2
poezio-13a269d6b211d571486d223bba71bd4230c82838.tar.xz
poezio-13a269d6b211d571486d223bba71bd4230c82838.zip
Fix a bug in the configuration writer
Diffstat (limited to 'src')
-rw-r--r--src/config.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config.py b/src/config.py
index 2ee4abb1..d0320a0a 100644
--- a/src/config.py
+++ b/src/config.py
@@ -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