From 13a269d6b211d571486d223bba71bd4230c82838 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 8 Mar 2012 22:38:26 +0100 Subject: Fix a bug in the configuration writer --- src/config.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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 -- cgit v1.2.3