diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-07-05 12:25:39 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-07-05 12:25:39 +0200 |
commit | c66ae524be4a6a6b414010d04bfd45cfb867245e (patch) | |
tree | 25539d2912ecc42e86390ae72e45bff790e2f832 | |
parent | 5c1dc0006fdde769aa068142b5f2f81dbae85f18 (diff) | |
download | poezio-c66ae524be4a6a6b414010d04bfd45cfb867245e.tar.gz poezio-c66ae524be4a6a6b414010d04bfd45cfb867245e.tar.bz2 poezio-c66ae524be4a6a6b414010d04bfd45cfb867245e.tar.xz poezio-c66ae524be4a6a6b414010d04bfd45cfb867245e.zip |
config: Pass a str rather than a Path to RawConfigParser, fixes Python 3.5 support.
-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 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: |