Skip to content

Commit 0a3d05b

Browse files
committed
Use portable os.replace instead of relying on POSIX behaviour
1 parent a2b47ff commit 0a3d05b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ def save(self):
402402
fd,
403403
indent = "\t" if app.config["DEBUG"] else None
404404
)
405-
os.rename(list_path + "~", list_path)
405+
os.replace(list_path + "~", list_path)
406406

407407
def update(self, server):
408408
with self.lock:

0 commit comments

Comments
 (0)