2
0
Эх сурвалжийг харах

Remove PackData.__del__ as it causes reference loops; use PackData.close
instead.

Jelmer Vernooij 15 жил өмнө
parent
commit
ba0547e771
1 өөрчлөгдсөн 0 нэмэгдсэн , 3 устгасан
  1. 0 3
      dulwich/pack.py

+ 0 - 3
dulwich/pack.py

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