def reorganize(self): with _lock: self.__check_closed() if lib.gdbm_reorganize(self.__ll_dbm) < 0: self.__raise_from_errno()