Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def close(self):
self.closed = True
self.fp.close()
skypy.current_task.message_helper.send_message("close_stream", {"id": self.ref.id, "chunk_size": self.chunk_size})
skypy.remove_ref_dependency(self.ref)
def close(self):
self.fp.close()
if self.must_close:
skypy.current_task.message_helper.send_message("close_stream", {"id": self.ref.id, "chunk_size": self.chunk_size})
skypy.remove_ref_dependency(self.ref)