opener: use util.unlink (issue2524)
authorAdrian Buehlmann <adrian@cadifra.com>
Tue, 11 Jan 2011 14:10:16 +0100
changeset 13282 c01eea6c455b
parent 13281 95de08ffa324
child 13283 a3e834a9e9c4
opener: use util.unlink (issue2524)
mercurial/util.py
--- 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