From fe6c8041a10b24b9c2be6f46b032b3f30615b6d5 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 8 Jul 2018 09:18:36 +0200 Subject: =?UTF-8?q?Add=20some=20more=20str()=20on=20Paths=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- poezio/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'poezio/config.py') 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) -- cgit v1.2.3