diff --git a/lib/entropy/client/interfaces/db.py b/lib/entropy/client/interfaces/db.py index 41f45b05a..073a03aac 100644 --- a/lib/entropy/client/interfaces/db.py +++ b/lib/entropy/client/interfaces/db.py @@ -109,11 +109,6 @@ class CachedRepository(EntropyRepository): "cannot close this repository directly. Software bug!") return EntropyRepository.close(self) - def __del__(self): - """ - Cannot honor the constraint in this case, sorry! - """ - return EntropyRepository.close(self) class InstalledPackagesRepository(CachedRepository): """ diff --git a/lib/entropy/db/__init__.py b/lib/entropy/db/__init__.py index d6ebf9fc2..61d9e1538 100644 --- a/lib/entropy/db/__init__.py +++ b/lib/entropy/db/__init__.py @@ -754,9 +754,6 @@ class EntropyRepository(EntropyRepositoryBase): self._discardLiveCache() return self._live_cacher.get(self._getLiveCacheKey() + key) - def __del__(self): - self.close() - @staticmethod def update(entropy_client, repository_id, force, gpg): """