Changes between Initial Version and Version 1 of Ticket #180, comment 1


Ignore:
Timestamp:
05/08/2011 03:08:17 PM (14 years ago)
Author:
davidsarah
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #180, comment 1

    initial v1  
    1717            if sys.platform == "win32":
    1818                # Win32 can't do an atomic rename to an existing file.
    19                     try:
    20                         os.unlink(options.newfile)
    21                     except OSError:
    22                         pass
     19                try:
     20                    os.unlink(options.newfile)
     21                except OSError:
     22                    pass
    2323            os.rename(newfilename, options.newfile)
    2424}}}
     25
     26[edit: indentation fixed]