Commits

Martin Geisler committed ad63e5f

bundlerepository: test self.tempfile field, not tempfile module

This error was introduced in 680fe77ab5b8.

  • Participants
  • Parent commits e339346
  • Branches stable

Comments (0)

Files changed (1)

File mercurial/bundlerepo.py

 
     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)