summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-08-15 18:06:19 +0200
committerAnton Khirnov <anton@khirnov.net>2022-08-15 18:06:19 +0200
commit2db08e43d82c0a34e87d30290a8400d4f4317601 (patch)
treeb730f08d7bca966c8e70f52e299aab6c44838805
parent398934a95b5d126c525d11264b39ccc4e9a8634c (diff)
datafile: drop __del__ method
Explicit close should be called instead
-rw-r--r--datafile.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/datafile.py b/datafile.py
index 2aa752e..8a61c13 100644
--- a/datafile.py
+++ b/datafile.py
@@ -226,9 +226,6 @@ class DataFile(object):
self.close()
raise
- def __del__(self):
- self.close()
-
def _iter_from_time(self, time):
if self._dt_iter is None:
if time == 0.0: