diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-07-08 09:18:36 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-07-08 09:18:36 +0200 |
commit | fe6c8041a10b24b9c2be6f46b032b3f30615b6d5 (patch) | |
tree | cd78379edae77e775a4e859232889aef7dcde25e | |
parent | 9dd38bd840c3a4573d5ecdb9d6db27e6ff729338 (diff) | |
download | poezio-fe6c8041a10b24b9c2be6f46b032b3f30615b6d5.tar.gz poezio-fe6c8041a10b24b9c2be6f46b032b3f30615b6d5.tar.bz2 poezio-fe6c8041a10b24b9c2be6f46b032b3f30615b6d5.tar.xz poezio-fe6c8041a10b24b9c2be6f46b032b3f30615b6d5.zip |
Add some more str() on Paths…
-rw-r--r-- | poezio/config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/config.py b/poezio/config.py index dfe46e3c..8970ab98 100644 --- a/poezio/config.py +++ b/poezio/config.py @@ -341,7 +341,7 @@ class Config(RawConfigParser): filename = self.file_name.parent / ('.%s.tmp' % self.file_name.name) with os.fdopen( os.open( - filename, + str(filename), os.O_WRONLY | os.O_CREAT, 0o600, ), @@ -500,7 +500,7 @@ def file_ok(filepath): False otherwise. """ val = filepath.exists() - val &= os.access(filepath, os.R_OK | os.W_OK) + val &= os.access(str(filepath), os.R_OK | os.W_OK) return bool(val) |