Remove PackData.__del__ as it causes reference loops; use PackData.close
authorJelmer Vernooij <jelmer@samba.org>
Thu, 20 May 2010 10:28:18 +0000 (12:28 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Thu, 20 May 2010 10:28:18 +0000 (12:28 +0200)
instead.

dulwich/pack.py

index 43bc24de0c0560f9984ef9a97eb74b5f08e0456d..f2cf446334c5aade467553f4fdac8649edddf7d7 100644 (file)
@@ -709,9 +709,6 @@ class PackData(object):
     def close(self):
         self._file.close()
 
-    def __del__(self):
-        self.close()
-
     def _get_size(self):
         if self._size is not None:
             return self._size