def save_history(self, restoreOldHistory=False):
        if self._readline and self._historyPath:
            self._readline.set_history_length(1000)
            try:
                self._readline.write_history_file(self._historyPath)
            except __HOLE__:
                pass

            if restoreOldHistory:
                self.restore_old_history()
            else:
                self._readline.clear_history()
dataset/ETHPy150Open sassoftware/conary/conary/lib/epdb_embedded/__init__.py/Epdb.save_history