Commit 1af489f
committed
Fix X11 update_auth chaange to work on Windows
Commit 9e32fd1 worked fine on Linux and macOS, but removing the close of
new_file before doing the file rename caused errors on Windows. This adds
back the explicit file close before calling os.replace() when there's
no error. If there is an error, though, the "with" statement will still
trigger a close.1 parent 9e32fd1 commit 1af489f
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
| 506 | + | |
| 507 | + | |
506 | 508 | | |
507 | 509 | | |
508 | 510 | | |
| |||
0 commit comments