diff options
Diffstat (limited to 'poezio/config.py')
-rw-r--r-- | poezio/config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/config.py b/poezio/config.py index f8fcfd00..8da71071 100644 --- a/poezio/config.py +++ b/poezio/config.py @@ -308,7 +308,7 @@ class Config(RawConfigParser): begin, end = sections[section] pos = find_line(result_lines, begin, end, option) - if pos is -1: + if pos == -1: result_lines.insert(end, '%s = %s' % (option, value)) else: result_lines[pos] = '%s = %s' % (option, value) @@ -334,7 +334,7 @@ class Config(RawConfigParser): begin, end = sections[section] pos = find_line(result_lines, begin, end, option) - if pos is -1: + if pos == -1: log.error( 'Tried to remove a non-existing option %s' ' from section %s', option, section) |