Skip to content

Commit 2e10795

Browse files
committed
util: Remove __del__ because it doesn't work as destructor.
1 parent 3bd0674 commit 2e10795

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

openage/util/fslike/path.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -366,16 +366,3 @@ def get_temp_dir():
366366
path.is_temp = True
367367

368368
return path
369-
370-
def __del__(self):
371-
"""
372-
Destructor used for temp files and directories.
373-
"""
374-
if self.is_temp:
375-
# Cleanup temp file
376-
if self.exists():
377-
if self.is_file():
378-
self.unlink()
379-
380-
elif self.is_dir():
381-
self.removerecursive()

0 commit comments

Comments
 (0)