changeset 13282:c01eea6c455b

opener: use util.unlink (issue2524)
author Adrian Buehlmann <adrian@cadifra.com>
date Tue, 11 Jan 2011 14:10:16 +0100
parents 95de08ffa324
children a3e834a9e9c4
files mercurial/util.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/util.py	Tue Jan 11 14:10:16 2011 +0100
+++ b/mercurial/util.py	Tue Jan 11 14:10:16 2011 +0100
@@ -911,7 +911,7 @@
                 return atomictempfile(f, mode, self.createmode)
             try:
                 if 'w' in mode:
-                    os.unlink(f)
+                    unlink(f)
                     nlink = 0
                 else:
                     # nlinks() may behave differently for files on Windows