Skip to content

Commit

Permalink
Use portable os.replace instead of relying on POSIX behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Jun 25, 2018
1 parent a2b47ff commit 0a3d05b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.py
Expand Up @@ -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:
Expand Down

0 comments on commit 0a3d05b

Please sign in to comment.