config: Pass a str rather than a Path to RawConfigParser, fixes Python 3.5 support.
This commit is contained in:
parent
5c1dc0006f
commit
c66ae524be
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue