From cabc8fcd944bf6c915cd82da2405375f5863ebf8 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 8 Jul 2018 10:56:59 +0200 Subject: config: Use pathlib.Path.open() instead of open(). --- poezio/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( -- cgit v1.2.3