From c66ae524be4a6a6b414010d04bfd45cfb867245e Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Thu, 5 Jul 2018 12:25:39 +0200 Subject: =?UTF-8?q?config:=20Pass=20a=20str=20rather=20than=20a=20Path=20t?= =?UTF-8?q?o=20RawConfigParser,=20fixes=20Python=C2=A03.5=20support.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- poezio/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'poezio/config.py') diff --git a/poezio/config.py b/poezio/config.py index f7d73164..f3c5f375 100644 --- a/poezio/config.py +++ b/poezio/config.py @@ -168,7 +168,7 @@ class Config(RawConfigParser): self.default = default def read_file(self): - RawConfigParser.read(self, self.file_name, encoding='utf-8') + RawConfigParser.read(self, str(self.file_name), encoding='utf-8') # Check config integrity and fix it if it’s wrong # only when the object is the main config if self.__class__ is Config: -- cgit v1.2.3