From b3a944c76bc5e72ed7627ed0de3e17006544b912 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 8 Jul 2018 10:56:45 +0200 Subject: config: Replace the config file with its new version, rather than copy2/remove. --- poezio/config.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/poezio/config.py b/poezio/config.py index 8970ab98..3c392714 100644 --- a/poezio/config.py +++ b/poezio/config.py @@ -349,8 +349,7 @@ class Config(RawConfigParser): encoding='utf-8') as fd: for line in lines: fd.write('%s\n' % line) - copy2(filename, self.file_name) - remove(filename) + filename.replace(self.file_name) except: success = False log.error('Unable to save the config file.', exc_info=True) -- cgit v1.2.3