diff options
-rw-r--r-- | poezio/config.py | 2 |
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( |