summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-07-08 09:18:36 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-07-08 09:18:36 +0200
commitfe6c8041a10b24b9c2be6f46b032b3f30615b6d5 (patch)
treecd78379edae77e775a4e859232889aef7dcde25e
parent9dd38bd840c3a4573d5ecdb9d6db27e6ff729338 (diff)
downloadpoezio-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.py4
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)