Mercurial > hg
changeset 12961:ad63e5f834e1 stable
bundlerepository: test self.tempfile field, not tempfile module
This error was introduced in 680fe77ab5b8.
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Wed, 10 Nov 2010 15:38:00 +0100 |
parents | e339346a9b05 |
children | ff083040a555 |
files | mercurial/bundlerepo.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/bundlerepo.py Wed Nov 10 13:48:23 2010 +0100 +++ b/mercurial/bundlerepo.py Wed Nov 10 15:38:00 2010 +0100 @@ -252,8 +252,8 @@ def __del__(self): del self.bundle - if tempfile is not None: - os.unlink(tempfile) + if self.tempfile is not None: + os.unlink(self.tempfile) if self._tempparent: shutil.rmtree(self._tempparent, True)