bundlerepository: test self.tempfile field, not tempfile module stable
authorMartin Geisler <mg@aragost.com>
Wed, 10 Nov 2010 15:38:00 +0100
branchstable
changeset 12961 ad63e5f834e1
parent 12960 e339346a9b05
child 12962 ff083040a555
bundlerepository: test self.tempfile field, not tempfile module This error was introduced in 680fe77ab5b8.
mercurial/bundlerepo.py
--- 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)