Use portable os.replace instead of relying on POSIX behaviour

This commit is contained in:
sfan5
2018-06-25 12:48:23 +02:00
parent a2b47ff52b
commit 0a3d05baf5

View File

@@ -402,7 +402,7 @@ class ServerList:
fd,
indent = "\t" if app.config["DEBUG"] else None
)
os.rename(list_path + "~", list_path)
os.replace(list_path + "~", list_path)
def update(self, server):
with self.lock: