Fixed broken context manager __exit__
This commit is contained in:
parent
028596a80e
commit
a7499fa3be
2 changed files with 3 additions and 10 deletions
|
|
@ -226,6 +226,7 @@ class StreamObject(object):
|
|||
|
||||
def close(self):
|
||||
"""Both clear the stream, and delete any associated on-disk data"""
|
||||
log("Closing {}".format(self.id))
|
||||
self.delete_stream()
|
||||
if not self.keep_on_disk:
|
||||
self.delete_file()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue