# HG changeset patch # User Martin Geisler # Date 2010-11-10 14:38:00 # Node ID ad63e5f834e15069cfb15e473fa47d9714e30914 # Parent e339346a9b05c474a6d461462351e1a2a5602786 bundlerepository: test self.tempfile field, not tempfile module This error was introduced in 680fe77ab5b8. diff --git a/mercurial/bundlerepo.py b/mercurial/bundlerepo.py --- a/mercurial/bundlerepo.py +++ b/mercurial/bundlerepo.py @@ -252,8 +252,8 @@ class bundlerepository(localrepo.localre 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)