mercurial/bundlerepo.py
branchstable
changeset 12961 ad63e5f834e1
parent 12734 5dfd1c49dcc5
child 12962 ff083040a555
--- 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)