Exemplo n.º 1
0
 def close(self):
     ''' Close the underlying snapshot and free all resources.
     '''
     if self.snapshot:
         LDB.leveldb_release_snapshot(self.snapshot)
         self.snapshot = None