diff options
author | mathieui <mathieui@mathieui.net> | 2012-07-26 00:09:23 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-07-26 00:09:23 +0200 |
commit | 2767da0b78512f9070506ead32bd3fe4a16b2450 (patch) | |
tree | 128dee2fd59aad8da74c6c4e1b89e71b934dd396 /src/config.py | |
parent | b7b7d6b3aadde8cf769fec948f5598f66998e100 (diff) | |
download | poezio-2767da0b78512f9070506ead32bd3fe4a16b2450.tar.gz poezio-2767da0b78512f9070506ead32bd3fe4a16b2450.tar.bz2 poezio-2767da0b78512f9070506ead32bd3fe4a16b2450.tar.xz poezio-2767da0b78512f9070506ead32bd3fe4a16b2450.zip |
Small non-impacting modifications
- Write the config with “option = value” instead of “option= value”
- Docstring for sighup_handler
- Optimize a join() in the main loop
- Rename the verbose get_error_message_from_error_stanza() with
get_error_message()
- Remove the unused Tab.just_before_refresh() which is litterally used
nowhere in poezio
Diffstat (limited to 'src/config.py')
-rw-r--r-- | src/config.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config.py b/src/config.py index 6695c074..742bd947 100644 --- a/src/config.py +++ b/src/config.py @@ -127,7 +127,7 @@ class Config(RawConfigParser): for line in lines_before: if line.startswith('['): # check the section if we_are_in_the_right_section and not written: - result_lines.append('%s= %s' % (option, value)) + result_lines.append('%s = %s' % (option, value)) written = True if line == '[%s]' % section: we_are_in_the_right_section = True @@ -137,15 +137,15 @@ class Config(RawConfigParser): if (line.startswith('%s ' % (option,)) or line.startswith('%s=' % (option,)) or line.startswith('%s = ' % (option,))) and we_are_in_the_right_section: - line = '%s= %s' % (option, value) + line = '%s = %s' % (option, value) written = True result_lines.append(line) if not section_found: result_lines.append('[%s]' % section) - result_lines.append('%s= %s' % (option, value)) + result_lines.append('%s = %s' % (option, value)) elif not written: - result_lines.append('%s= %s' % (option, value)) + result_lines.append('%s = %s' % (option, value)) df = open(self.file_name, 'w') |