summaryrefslogtreecommitdiff
path: root/poezio/config.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2019-10-27 20:04:11 +0100
committermathieui <mathieui@mathieui.net>2019-10-27 20:04:11 +0100
commit8499f1cbc97c55dba6d47043972569df94f6a350 (patch)
tree6ab15d99fbabf76ffce1e1597825ebb20495f832 /poezio/config.py
parent5928f02bfc855fe3570e7916aa00a48cca9b6ef8 (diff)
downloadpoezio-8499f1cbc97c55dba6d47043972569df94f6a350.tar.gz
poezio-8499f1cbc97c55dba6d47043972569df94f6a350.tar.bz2
poezio-8499f1cbc97c55dba6d47043972569df94f6a350.tar.xz
poezio-8499f1cbc97c55dba6d47043972569df94f6a350.zip
Fix syntax warnings (thanks python 3.8)
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 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)