summaryrefslogtreecommitdiff
path: root/poezio/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'poezio/config.py')
-rw-r--r--poezio/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/config.py b/poezio/config.py
index c68e8452..155b11ba 100644
--- a/poezio/config.py
+++ b/poezio/config.py
@@ -280,7 +280,7 @@ class Config(RawConfigParser):
else:
sections, result_lines = result
- if not section in sections:
+ if section not in sections:
result_lines.append('[%s]' % section)
result_lines.append('%s = %s' % (option, value))
else:
@@ -304,7 +304,7 @@ class Config(RawConfigParser):
else:
sections, result_lines = result
- if not section in sections:
+ if section not in sections:
log.error('Tried to remove the option %s from a non-'
'existing section (%s)', option, section)
return True