Skip to content
Permalink
Browse files

Use portable os.replace instead of relying on POSIX behaviour

  • Loading branch information
sfan5 committed Jun 25, 2018
1 parent a2b47ff commit 0a3d05baf580b54439f8c65af72003756dbf013e
Showing with 1 addition and 1 deletion.
  1. +1 −1 server.py
@@ -402,7 +402,7 @@ def save(self):
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:

0 comments on commit 0a3d05b

Please sign in to comment.