Remove _FileCache file from the FS when they're not used anymore

issue8311
review261391002
This commit is contained in:
Nicolas Évrard committed 2019-05-02 12:11:35 +02:00
1 parent 9066d3189c
commit 1e548d30e5
1 file changed
+6
@@ -905,6 +905,12 @@ class _FileCache(object):
def __init__(self, path):
self.path = path
def __del__(self):
try:
os.remove(self.path)
except IOError:
pass
class BinaryField(Field):