summaryrefslogtreecommitdiff
path: root/poezio/config.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2018-06-29 21:18:09 +0200
committermathieui <mathieui@mathieui.net>2018-06-29 21:34:23 +0200
commit28ce49dcaaa1f7e958e09aff2af7d1e956796ad9 (patch)
treec1ffc7d4f9909080abd6dd2875a66f948879f00f /poezio/config.py
parent39695ba42d9183584edb6c6b93b02b04be67f126 (diff)
downloadpoezio-28ce49dcaaa1f7e958e09aff2af7d1e956796ad9.tar.gz
poezio-28ce49dcaaa1f7e958e09aff2af7d1e956796ad9.tar.bz2
poezio-28ce49dcaaa1f7e958e09aff2af7d1e956796ad9.tar.xz
poezio-28ce49dcaaa1f7e958e09aff2af7d1e956796ad9.zip
Update poezio for the new tabs module
Diffstat (limited to 'poezio/config.py')
-rw-r--r--poezio/config.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/poezio/config.py b/poezio/config.py
index ed295c92..92e3c573 100644
--- a/poezio/config.py
+++ b/poezio/config.py
@@ -316,16 +316,18 @@ class Config(RawConfigParser):
sections, result_lines = result
if section not in sections:
- log.error('Tried to remove the option %s from a non-'
- 'existing section (%s)', option, section)
+ log.error(
+ 'Tried to remove the option %s from a non-'
+ 'existing section (%s)', option, section)
return True
else:
begin, end = sections[section]
pos = find_line(result_lines, begin, end, option)
if pos is -1:
- log.error('Tried to remove a non-existing option %s'
- ' from section %s', option, section)
+ log.error(
+ 'Tried to remove a non-existing option %s'
+ ' from section %s', option, section)
return True
else:
del result_lines[pos]
@@ -426,9 +428,10 @@ class Config(RawConfigParser):
elif current.lower() == "true":
value = "false"
else:
- return ('Could not toggle option: %s.'
- ' Current value is %s.' %
- (option, current or "empty"), 'Warning')
+ return (
+ 'Could not toggle option: %s.'
+ ' Current value is %s.' % (option, current or "empty"),
+ 'Warning')
if self.has_section(section):
RawConfigParser.set(self, section, option, value)
else: