We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4fd573 commit 54a8c32Copy full SHA for 54a8c32
1 file changed
ev3dev.py
@@ -56,6 +56,10 @@ class FileCache(object):
56
def __init__(self):
57
self._cache = {}
58
59
+ def __del__(self):
60
+ for f in self._cache.values():
61
+ f.close()
62
+
63
def file_handle( self, path, mode, reopen=False ):
64
"""Manages the file handle cache and opening the files in the correct mode"""
65
0 commit comments