summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-07-08 10:56:59 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-07-08 10:56:59 +0200
commitcabc8fcd944bf6c915cd82da2405375f5863ebf8 (patch)
treee86cd703510a94a0310e576bc11cb13dba375691
parentb3a944c76bc5e72ed7627ed0de3e17006544b912 (diff)
downloadpoezio-cabc8fcd944bf6c915cd82da2405375f5863ebf8.tar.gz
poezio-cabc8fcd944bf6c915cd82da2405375f5863ebf8.tar.bz2
poezio-cabc8fcd944bf6c915cd82da2405375f5863ebf8.tar.xz
poezio-cabc8fcd944bf6c915cd82da2405375f5863ebf8.zip
config: Use pathlib.Path.open() instead of open().
-rw-r--r--poezio/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/poezio/config.py b/poezio/config.py
index 3c392714..c8613acb 100644
--- a/poezio/config.py
+++ b/poezio/config.py
@@ -368,7 +368,7 @@ class Config(RawConfigParser):
"""
if file_ok(self.file_name):
try:
- with open(self.file_name, 'r', encoding='utf-8') as df:
+ with self.file_name.open('r', encoding='utf-8') as df:
lines_before = [line.strip() for line in df]
except OSError:
log.error(