Fix: __del__ to __exit__

This commit is contained in:
Donghyun Kim
2022-05-30 05:39:37 +09:00
parent f5f55d72fe
commit bd332261de
+1 -1
View File
@@ -191,7 +191,7 @@ class FileLayer(interfaces.layers.DataLayerInterface):
"""Closes the file handle."""
self._file.close()
def __del__(self) -> None:
def __exit__(self) -> None:
self.destroy()
@classmethod