in sparkey/__init__.py [0:0]
def close(self):
"""Closes the writer (if not already closed).
Also flushes all pending changes from memory to file.
"""
log = self._log
if log is not None:
self._log = None
_logwriter_close(_byref(log))