From 2767da0b78512f9070506ead32bd3fe4a16b2450 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 26 Jul 2012 00:09:23 +0200 Subject: Small non-impacting modifications MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- src/config.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/config.py') 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') -- cgit v1.2.3