Mercurial > hg-stable
changeset 13281:95de08ffa324
lock: use util.unlink (issue2537)
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Tue, 11 Jan 2011 14:10:16 +0100 |
parents | 6052bbc7aabd |
children | c01eea6c455b |
files | mercurial/lock.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/lock.py Tue Jan 11 14:10:16 2011 +0100 +++ b/mercurial/lock.py Tue Jan 11 14:10:16 2011 +0100 @@ -113,7 +113,7 @@ # held, or can race and break valid lock. try: l = lock(self.f + '.break', timeout=0) - os.unlink(self.f) + util.unlink(self.f) l.release() except error.LockError: return locker @@ -126,7 +126,7 @@ if self.releasefn: self.releasefn() try: - os.unlink(self.f) + util.unlink(self.f) except OSError: pass