Changes between Initial Version and Version 1 of Ticket #180, comment 1
- Timestamp:
- 05/08/2011 03:08:17 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #180, comment 1
initial v1 17 17 if sys.platform == "win32": 18 18 # Win32 can't do an atomic rename to an existing file. 19 20 21 22 19 try: 20 os.unlink(options.newfile) 21 except OSError: 22 pass 23 23 os.rename(newfilename, options.newfile) 24 24 }}} 25 26 [edit: indentation fixed]