config: Pass a str rather than a Path to RawConfigParser, fixes Python 3.5 support.

This commit is contained in:
Emmanuel Gil Peyrot 2018-07-05 12:25:39 +02:00
parent 5c1dc0006f
commit c66ae524be

View file

@ -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 its wrong
# only when the object is the main config
if self.__class__ is Config: